You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-52Lines changed: 37 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,20 @@ Styleguide generator is a handy little tool that helps you generate good looking
5
5
styleguides from stylesheets using KSS notation. Styleguide generator can be
6
6
used via command line utility, gulp task or grunt task (needs grunt-gulp) with minimal effort.
7
7
8
-
## How to use
8
+
## Table of contents
9
+
10
+
*[Usage](#usage)
11
+
*[As a command line tool](#as-a-command-line-tool)
12
+
*[As a module in your project](#as-a-module-in-your-project)
13
+
*[With Gulp](#with-gulp)
14
+
*[With Grunt](#with-grunt)
15
+
*[Build options](#build-options)
16
+
*[Documenting syntax](#documenting-syntax)
17
+
*[Wrapper markup](#wrapper-markup)
18
+
*[Designer tool](#designer-tool)
19
+
*[Demo](#demo)
20
+
21
+
## Usage
9
22
10
23
You should familiarize yourself with both [KSS](https://github.com/kneath/kss)
11
24
and [node-kss](https://github.com/kss-node/kss-node) to get yourself started.
@@ -16,11 +29,11 @@ SC5 Styleguide provides additions to KSS syntax which you can learn [below](#use
16
29
17
30
Styleline command line tool searches all *.css, *.scss and *.less files from source directory and generates stand-alone styleguide to output path. You can host styleguide files yourself with any HTTP server or start built-in web server.
@@ -60,7 +73,7 @@ Config JSON file could contain following settings
60
73
]
61
74
}
62
75
63
-
For more specific documentation. See [Build Options](#build-options) section.
76
+
For more specific documentation. See [Build options](#build-options) section.
64
77
65
78
### As a module in your project
66
79
@@ -89,7 +102,7 @@ For more specific documentation. See [Build Options](#build-options) section.
89
102
.pipe(gulp.dest("<destination path>"));
90
103
});
91
104
92
-
For more specific documentation. See [Build Options](#build-options) section.
105
+
For more specific documentation. See [Build options](#build-options) section.
93
106
94
107
### With Grunt
95
108
@@ -129,7 +142,7 @@ Then you are able to use the same gulp task inside you `Gruntfile`:
129
142
130
143
For more specific documentation. See next section.
131
144
132
-
### Build Options
145
+
### Build options
133
146
134
147
The gulp function and configuration JSON accepts identically named parameters
135
148
@@ -200,7 +213,8 @@ Note: When using templateUrl in directives, the template path is relative to sty
200
213
201
214
Document your CSS components with [KSS](http://warpspire.com/kss/)
202
215
203
-
### Wrapper
216
+
### Wrapper markup
217
+
204
218
Sometimes your component examples need a wrapper. For example:
205
219
* you need to show how to use `<li>` element which works only with `<ul>` container;
206
220
* your component is not visible with white background;
@@ -269,11 +283,22 @@ a KSS markup
269
283
// Styleguide 1.1
270
284
```
271
285
272
-
would produce `<div class="parent-wrapper"><div class="parent"></div></div>` for the Parent section and
273
-
`<div class="parent-wrapper"><div class="parent"><span class="child"></span></div></div>` for the Child
274
-
section.
286
+
would produce a Parent section:
287
+
```
288
+
<div class="parent-wrapper">
289
+
<div class="parent"></div>
290
+
</div>
291
+
```
292
+
and a Child section:
293
+
```
294
+
<div class="parent-wrapper">
295
+
<div class="parent">
296
+
<span class="child"></span>
297
+
</div>
298
+
</div>
299
+
```
275
300
276
-
## Desiger tools
301
+
## Designer tool
277
302
278
303
When sassVariables is defined and styleguide is served with the built-in server, designer tool is also enabled. Designer tool is experimental feature that allow style variable editing in the browser and saving changed variables back to the source file.
279
304
@@ -287,44 +312,4 @@ Note: If you installed styleguide by cloning repository directly instead of npm
287
312
288
313
The demo generates styleguide to `demo-output` directory.
289
314
290
-
## How to develop
291
-
292
-
Projects contains small demo stylesheet that can be used to develop the UI.
293
-
Start watching UI changes in lib/app and build the app using the demo stylesheets:
294
-
295
-
gulp dev
296
-
297
-
Running the task also runs a small development server, and does the same as:
0 commit comments