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: packages/docs/src/docs/advanced-config-options.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
---
2
2
title: Editing the Configuration Options
3
3
tags:
4
-
- docs
4
+
- docs
5
5
category: getting-started
6
+
order: 50
6
7
---
7
8
8
9
Pattern Lab Node comes with a configuration file [(`patternlab-config.json`)](https://github.com/pattern-lab/patternlab-node/blob/master/packages/core/patternlab-config.json) that allows you to modify certain aspects of the system. The latest default values are included within. This file is shipped within [the editions](https://github.com/pattern-lab?utf8=%E2%9C%93&query=edition-node) or can be supplied from core and the command line interface. Below is a description of each configuration option and how it affects Pattern Lab Node.
@@ -85,11 +86,11 @@ Sets the boundaries of each of the viewport toggles, 'S'mall, 'M'edium, and 'L'a
85
86
86
87
Sets the level of verbosity for Pattern Lab Node logging.
87
88
88
-
-`error` will output a message as a thrown error
89
-
-`warning` will output all warnings plus above
90
-
-`info` will output all info messages, plus above (intended default)
91
-
-`debug` will output all debug messages, plus above
92
-
-`quiet` will output ZERO logs
89
+
-`error` will output a message as a thrown error
90
+
-`warning` will output all warnings plus above
91
+
-`info` will output all info messages, plus above (intended default)
92
+
-`debug` will output all debug messages, plus above
93
+
-`quiet` will output ZERO logs
93
94
94
95
This replaces the now obsolete `debug` flag.
95
96
@@ -251,8 +252,8 @@ Introduced in Pattern Lab Node v3, UIKits are a new term in the Pattern Lab [Eco
251
252
252
253
`uikits` accepts an array of UIKit objects, shipping with the one above.
253
254
254
-
-`name`: the name of the UIKit
255
-
-`outputDir` where to output this UIKit relative to the current root. By leaving this empty we retain the existing Pattern Lab 2.X behavior, outputting to `<project_root>/public`. If you had multiple UIKits, however, you would provide different values, such as:
255
+
-`name`: the name of the UIKit
256
+
-`outputDir` where to output this UIKit relative to the current root. By leaving this empty we retain the existing Pattern Lab 2.X behavior, outputting to `<project_root>/public`. If you had multiple UIKits, however, you would provide different values, such as:
256
257
257
258
```javascript
258
259
"uikits": [
@@ -269,16 +270,16 @@ Introduced in Pattern Lab Node v3, UIKits are a new term in the Pattern Lab [Eco
269
270
]
270
271
```
271
272
272
-
-`enabled`: quickly turn on or off the building of this UIKit
273
-
-`excludedPatternStates`: tell Pattern Lab not to include patterns with these states in this UIKit's output
274
-
-`excludedPatternTags`: tell Pattern Lab not to include patterns with these tags in this UIKit's output
275
-
-[currently not supported](https://github.com/pattern-lab/patternlab-node/issues/844)
273
+
-`enabled`: quickly turn on or off the building of this UIKit
274
+
-`excludedPatternStates`: tell Pattern Lab not to include patterns with these states in this UIKit's output
275
+
-`excludedPatternTags`: tell Pattern Lab not to include patterns with these tags in this UIKit's output
276
+
-[currently not supported](https://github.com/pattern-lab/patternlab-node/issues/844)
276
277
277
278
Important details:
278
279
279
-
- the [default `paths.source` object paths](https://github.com/pattern-lab/patternlab-node/pull/840/commits/a4961bd5d696a05fb516cdd951163b0f918d5e19) within `patternlab-config.json` are now relative to the current UIKit. See the [structure of uikit-workshop](https://github.com/pattern-lab/patternlab-node/tree/master/packages/uikit-workshop) for more info
280
-
- the [default `paths.public` object paths](https://github.com/pattern-lab/patternlab-node/pull/840/commits/812bab3659f504043e8b61b1dc1cdac71f248449) within `patternlab-config.json` are now relative to the current UIKit's `outputDir`. Absolute paths will no longer work. Someone could test putting an absolute path in a UIKit `outputDir` property and see what happens I suppose.
281
-
-`dependencyGraph.json` has moved to the project root rather than `public/` as we should only retain one
280
+
-the [default `paths.source` object paths](https://github.com/pattern-lab/patternlab-node/pull/840/commits/a4961bd5d696a05fb516cdd951163b0f918d5e19) within `patternlab-config.json` are now relative to the current UIKit. See the [structure of uikit-workshop](https://github.com/pattern-lab/patternlab-node/tree/master/packages/uikit-workshop) for more info
281
+
-the [default `paths.public` object paths](https://github.com/pattern-lab/patternlab-node/pull/840/commits/812bab3659f504043e8b61b1dc1cdac71f248449) within `patternlab-config.json` are now relative to the current UIKit's `outputDir`. Absolute paths will no longer work. Someone could test putting an absolute path in a UIKit `outputDir` property and see what happens I suppose.
282
+
-`dependencyGraph.json` has moved to the project root rather than `public/` as we should only retain one
Copy file name to clipboardExpand all lines: packages/docs/src/docs/editing-source-files.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
---
2
2
title: Editing Pattern Lab Source Files
3
3
tags:
4
-
- docs
4
+
- docs
5
5
category: getting-started
6
+
order: 20
6
7
---
7
8
8
9
When editing Pattern Lab you must put your files and edit them in the `./source/` directory. This includes your static assets like [JavaScript, CSS, and images](/docs/pattern-managing-assets.html). Each time [your site is generated](/docs/generating-pattern-lab.html) your patterns will be compiled and your static assets will be moved to the `./public/` directory. Because of this you **should not edit** the files in the `./public/` directory.
@@ -11,10 +12,10 @@ When editing Pattern Lab you must put your files and edit them in the `./source/
11
12
12
13
For the most part you can organize `./source/` anyway you see fit. There are a few Pattern Lab-specific directories though. They are:
13
14
14
-
-`_annotations/` - where your annotations reside. [learn more](/docs/pattern-adding-annotations.html).
15
-
-`_data/` - where the global data used to render your patterns resides. [learn more](/docs/data-overview.html).
16
-
-`_meta/` - where the header and footer that get applied to all of your patterns resides. [learn more](/docs/pattern-header-footer.html).
17
-
-`_patterns/` - where your patterns, pattern documentation, and pattern-specific data reside. [learn more](/docs/pattern-organization.html).
15
+
-`_annotations/` - where your annotations reside. [learn more](/docs/pattern-adding-annotations.html).
16
+
-`_data/` - where the global data used to render your patterns resides. [learn more](/docs/data-overview.html).
17
+
-`_meta/` - where the header and footer that get applied to all of your patterns resides. [learn more](/docs/pattern-header-footer.html).
18
+
-`_patterns/` - where your patterns, pattern documentation, and pattern-specific data reside. [learn more](/docs/pattern-organization.html).
Copy file name to clipboardExpand all lines: packages/docs/src/docs/generating-pattern-lab.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
---
2
2
title: Generating Pattern Lab
3
3
tags:
4
-
- docs
4
+
- docs
5
5
category: getting-started
6
+
order: 10
6
7
---
7
8
8
9
Running Pattern Lab for the first time will vary depending on which version was [installed](/docs/installation.html).
@@ -45,5 +46,3 @@ To stop watching and serving files on Mac OS X and Windows you can press`CTRL+C`
45
46
## Pattern Lab is now running: now what?
46
47
47
48
Your Pattern Lab should now be populated and [available for viewing](/docs/viewing-patterns.html#node) and you can [make changes to your patterns](/docs/editing-source-files.html).
Copy file name to clipboardExpand all lines: packages/docs/src/docs/installation.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
---
2
2
title: Installing Pattern Lab
3
3
tags:
4
-
- docs
4
+
- docs
5
5
category: getting-started
6
+
order: 0
6
7
---
7
8
8
9
## Step 1: Install Requirements
@@ -29,8 +30,8 @@ This will bring up an installation menu that presents the following steps:
29
30
30
31

31
32
32
-
-`edition-node (handlebars engine)`
33
-
-`edition-node-gulp (legacy)`
33
+
-`edition-node (handlebars engine)`
34
+
-`edition-node-gulp (legacy)`
34
35
35
36
3.`Which starterkit do you want to use?` - Choose the <ahref="/docs/advanced-starterkits.html">Starterkit</a> you want to begin your project with. Starterkits define the initial components and assets that are included in the initial project. Start from scratch, start from a full demo, or a lightweight boilerplate.
0 commit comments