gkss-rails 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fef4baaeebc2aafc2cb18fbff80d414a5cc9baae
4
- data.tar.gz: 4d9af9150772ff9f126bf02b169fe0c123119b59
3
+ metadata.gz: 5fb783916dda97f410f66e78677aa7b3ebec80ce
4
+ data.tar.gz: '07590c24307b3ddcdf00088cc4dc03fbfe202709'
5
5
  SHA512:
6
- metadata.gz: '09fac244778186a5865b928772023c5aa54a1ed742d66cc193fca6899acf3f9e639c9d0a005d2feaeca94a19bfd817360ec573c4dd74abf298bc12c4f3557520'
7
- data.tar.gz: 54da8f07a6d342913900fd2f35d4bc713f41ecd0e255cc1a66f9705e8389519e2012df2f696812342866b4b470823e0ce43ece3363b63e9b5948db04443f6d5e
6
+ metadata.gz: d207fc1d2ddc5c579072a0c728110ab49b492ac68bc408ded0c70694940a84c64e69678aef1dc36b91ea92103fc38ea706e8c4adaa46b16185ddec53b3d73dd3
7
+ data.tar.gz: 6fdd051cc34d7c5132c8c71df56c952496fc8ca66ddb512d0e235858e9621ccc96f4dc7562745b0001a9268c44bbc7a080b38b31dd3e4a56fd3460f6ed909152
data/README.md CHANGED
@@ -25,6 +25,12 @@ Then, install the needed files into your project:
25
25
  $ bundle exec rails g gkss:install
26
26
  ```
27
27
 
28
+ Add assets path into `config/initializers/assets.rb`
29
+
30
+ ```ruby
31
+ Rails.application.config.assets.precompile += %w( jquery-1.8.0.min.js prettify.js prettify.css styleguide.css )
32
+ ```
33
+
28
34
  Now move on to the next section.
29
35
 
30
36
  ### Customization
@@ -35,7 +41,7 @@ This gives you the following things that you should customize:
35
41
  Config your kss with title, root, sections
36
42
  `title` means Application's title
37
43
  `root` means which css file should be searched, default is `app/assets/stylesheets`
38
- `include_js` means which manifest js file shoud be included in styleguide page,
44
+ `include_js` and `include_css` means which manifest js and css file shoud be included in styleguide page,
39
45
  defualt is `application`
40
46
  `section` is sub pages which show your guides
41
47
 
@@ -85,10 +91,10 @@ section you want to document, and `code` describes the CSS selector of it.
85
91
 
86
92
  Thanks!
87
93
  ----------------
88
- [nkss-rails](http://nadarei.co/nkss-rails/)
89
- [nkss-rails:git](https://github.com/nadarei/nkss-rails)
90
- [kss-rails](https://github.com/dewski/kss-rails)
91
- [kss](https://github.com/kneath/kss)
94
+ + [nkss-rails](http://nadarei.co/nkss-rails/)
95
+ + [nkss-rails:git](https://github.com/nadarei/nkss-rails)
96
+ + [kss-rails](https://github.com/dewski/kss-rails)
97
+ + [kss](https://github.com/kneath/kss)
92
98
 
93
99
 
94
100
  License
@@ -49,4 +49,8 @@ private
49
49
  def styleguide_include_js
50
50
  styleguide_options['include_js'] || 'application'
51
51
  end
52
+
53
+ def styleguide_include_css
54
+ styleguide_options['include_css'] || 'application'
55
+ end
52
56
  end
@@ -12,11 +12,12 @@
12
12
  %head
13
13
  %meta{charset: 'utf-8'}
14
14
  %title Styleguides
15
- = stylesheet_link_tag styleguide_include_js
16
15
  = javascript_include_tag 'prettify'
17
16
  = javascript_include_tag 'jquery-1.8.0.min'
18
17
  = stylesheet_link_tag 'styleguide'
19
18
  = stylesheet_link_tag 'prettify'
19
+ = javascript_include_tag styleguide_include_js
20
+ = stylesheet_link_tag styleguide_include_css
20
21
 
21
22
  %body
22
23
  %button.sg-toggle-sidebar
data/lib/gkss/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gkss
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gkss-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - goshan