woo 0.1.0 → 0.1.2
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 +6 -4
- data/app/views/layouts/woo/application.html.haml +3 -0
- data/lib/woo/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: ac86a30d2a04367fffe035336d2a04505892a15d
|
|
4
|
+
data.tar.gz: edded18af626c9c8e4fcb7577b974652c4c061ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8bcc0429e8027f6117f80e8909f70a1f7c537c4ff36822a4f75011e36d84f85bf660b4f7fbb7f6ccdad9142a7e8aaa050c433eb83f188c6ea73f07c48945a92a
|
|
7
|
+
data.tar.gz: 12e80aadb0e5326bc0fba717d61b6c54940f2fbacca78ce71139210697a1b13ad714e59c0a9b88a0bf27b2ac045e679c4c1d17375b9d7272beac0a5f7a23f2e5
|
data/README.md
CHANGED
|
@@ -24,16 +24,18 @@ mount Woo::Engine, at: '/styleguide'
|
|
|
24
24
|
Woo features 2 generators to create views used within the styleguide.
|
|
25
25
|
|
|
26
26
|
### Pages
|
|
27
|
-
Creates app/views/styleguide/DIRECTORY/NAME.html.haml
|
|
28
|
-
|
|
27
|
+
Creates `app/views/styleguide/DIRECTORY/NAME.html.haml`
|
|
28
|
+
|
|
29
|
+
If `DIRECTORY` is not specified, it will default to 'pages'.
|
|
29
30
|
|
|
30
31
|
```
|
|
31
32
|
rails generate woo:page [DIRECTORY/]NAME
|
|
32
33
|
```
|
|
33
34
|
|
|
34
35
|
### UI Elements
|
|
35
|
-
Creates app/views/styleguide/ui_elements/_NAME.html.haml
|
|
36
|
-
|
|
36
|
+
Creates `app/views/styleguide/ui_elements/_NAME.html.haml`
|
|
37
|
+
|
|
38
|
+
UI Elements are rendered as partials rather than individual pages.
|
|
37
39
|
|
|
38
40
|
```
|
|
39
41
|
rails generate styleguide:ui_element NAME
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
%title Application Style Guide
|
|
5
5
|
%meta(content="width=device-width, initial-scale=1.0, maximum-scale=1.0" name="viewport")
|
|
6
6
|
|
|
7
|
+
= javascript_include_tag 'application'
|
|
8
|
+
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
|
9
|
+
|
|
7
10
|
= javascript_include_tag 'woo/application'
|
|
8
11
|
= stylesheet_link_tag 'woo/application', media: 'all', 'data-turbolinks-track' => true
|
|
9
12
|
= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/github.min.css"
|
data/lib/woo/version.rb
CHANGED