Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 50a0b67

Browse files
committed
Updated advanced-config-options page
Broke out a separate Node Version Tab This is part of pattern-lab/patternlab-node#70 for version 1.0.0 release prep
1 parent 9b25d11 commit 50a0b67

File tree

1 file changed

+85
-10
lines changed

1 file changed

+85
-10
lines changed
+85-10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
---
22
layout: docs
33
title: Editing the config.ini Options | Pattern Lab
4+
languages:
5+
- language: php
6+
- language: node
47
---
58

9+
<!--- start php -->
10+
11+
<div class="tab-panel" id="php">
12+
<h2 class="language-title">php</h2>
13+
14+
{% capture m %}
15+
616
Pattern Lab comes with a simple configuration file that allows you to modify certain aspects of the system. The following example configuration is from `v0.7.9` of Pattern Lab.
717

818
/*
@@ -14,37 +24,102 @@ Pattern Lab comes with a simple configuration file that allows you to modify cer
1424

1525
// file extensions to ignore when building or watching the source dir, separate with a comma
1626
ie = "scss,DS_Store,less"
17-
27+
1828
// directories and files to ignore when building or watching the source dir, separate with a comma
1929
id = "scss,.svn,.sass-cache"
20-
30+
2131
// choose if these services should be loaded in the nav and their ports
2232
autoReloadNav = "true"
2333
autoReloadPort = "8002"
2434
pageFollowNav = "true"
2535
pageFollowPort = "8003"
26-
36+
2737
// whether the qr code generator should be loaded automatically in the nav
2838
qrCodeGeneratorOn = "false"
29-
39+
3040
// pattern lab's xip host if you have it configured, to be used with the QR code generator
3141
xipHostname = "http://patternlab.*.xip.io"
32-
42+
3343
// whether the public directory should be cleaned when generating your site
3444
cleanPublic = "true"
35-
45+
3646
// the minimum and maximum for the viewport resizer
3747
ishMinimum = "240"
3848
ishMaximum = "2600"
39-
49+
4050
// which, if any, controls to hide in the nav, separate with a comma
4151
ishControlsHide = "hay"
42-
52+
4353
// the order of pattern states, css class names
4454
patternStates = "inprogress,inreview,complete"
45-
55+
4656
// the pattern types that shouldn't be included in the style guide, useful if you nest pages/templates
4757
styleGuideExcludes = ""
48-
58+
4959
// should the cache buster be on, set to false to set the cacheBuster value to 0
5060
cacheBusterOn = "true"
61+
62+
{% endcapture %}
63+
{{ m | markdownify }}
64+
65+
</div>
66+
67+
<!--- end php -->
68+
69+
70+
<!--- start node -->
71+
72+
<div class="tab-panel" id="node">
73+
<h2 class="language-title">node</h2>
74+
75+
{% capture m %}
76+
77+
Pattern Lab Node comes with a simple configuration file (`config.json`) that allows you to modify certain aspects of the system. The following example configuration is from [v0.15.1](https://github.com/pattern-lab/patternlab-node/releases/tag/v0.15.1) of Pattern Lab Node.
78+
79+
```
80+
{
81+
"patterns" : {
82+
"source" : "./source/_patterns/",
83+
"public" : "./public/patterns/"
84+
},
85+
"styleGuideExcludes": [
86+
"templates",
87+
"pages"
88+
],
89+
"ignored-extensions" : ["scss", "DS_Store", "less"],
90+
"ignored-directories" : ["scss"],
91+
"debug": false,
92+
"ishControlsVisible": {
93+
"s": true,
94+
"m": true,
95+
"l": true,
96+
"full": true,
97+
"random": true,
98+
"disco": true,
99+
"hay": true,
100+
"mqs": true,
101+
"find": true,
102+
"views-all": true,
103+
"views-annotations": true,
104+
"views-code": true,
105+
"views-new": true,
106+
"tools-all": true,
107+
"tools-sync": true,
108+
"tools-shortcuts": true,
109+
"tools-docs": true
110+
},
111+
"patternStates": {
112+
"homepage-emergency" : "inprogress"
113+
},
114+
"patternExportKeys": [],
115+
"patternExportDirectory": "./pattern_exports/",
116+
"baseurl" : ""
117+
}
118+
```
119+
120+
{% endcapture %}
121+
{{ m | markdownify }}
122+
123+
</div>
124+
125+
<!--- end node -->

0 commit comments

Comments
 (0)