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 +4 -4
- data/README.md +11 -5
- data/app/controllers/styleguides_controller.rb +4 -0
- data/app/views/layouts/styleguide_page.html.haml +2 -1
- data/lib/gkss/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fb783916dda97f410f66e78677aa7b3ebec80ce
|
4
|
+
data.tar.gz: '07590c24307b3ddcdf00088cc4dc03fbfe202709'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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