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

Commit c333f54

Browse files
committed
Updated editing-source-files page
Unified under one tab - identical text This is part of pattern-lab/patternlab-node#70 for version 1.0.0 release prep
1 parent eb0da20 commit c333f54

File tree

1 file changed

+2
-37
lines changed

1 file changed

+2
-37
lines changed

patternlabsite/docs/editing-source-files.md

+2-37
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,8 @@
22
layout: docs
33
title: Editing Pattern Lab Source Files | Pattern Lab
44
heading: Editing Pattern Lab Source Files
5-
languages:
6-
- language: php
7-
- language: node
85
---
96

10-
<!--- start php -->
7+
Because the PHP and Node versions of Pattern Lab are static site generators you <u>**should not edit the files in the `public/` directory**</u>. Instead, you should edit the files under the `source/` directory. In addition to editing patterns under the `source/` directory you'll want to [edit your JavaScript, CSS, and images](/docs/pattern-managing-assets.html) as well. Each time your site is generated your files will be automatically moved to the `public/` directory and the patterns will be automatically compiled.
118

12-
<div class="tab-panel" id="php">
13-
<h2 class="language-title">php</h2>
14-
15-
{% capture m %}
16-
17-
Because the PHP version of Pattern Lab is a static site generator you <u>**should not edit the files in the `public/` directory**</u>. Instead, you should edit the files under the `source/` directory. In addition to editing patterns under the `source/` directory you'll want to [edit your JavaScript, CSS, and images](/docs/pattern-managing-assets.html) as well. Each time your site is generated your files will be automatically moved to the `public/` directory and the patterns will be automatically compiled.
18-
19-
Generating the Pattern Lab website after each change can be cumbersome. The PHP version of Pattern Lab comes with the ability to [watch files in the `source/` directory for changes and re-generate the site automatically](/docs/advanced-auto-regenerate.html). The Pattern Lab website can also be [automatically reloaded](/docs/advanced-reload-browser.html).
20-
21-
{% endcapture %}
22-
{{ m | markdownify }}
23-
24-
</div>
25-
26-
<!--- end php -->
27-
28-
<!--- start node -->
29-
30-
<div class="tab-panel" id="node">
31-
<h2 class="language-title">node</h2>
32-
33-
{% capture m %}
34-
35-
Because the Node version of Pattern Lab is a static site generator you <u>**should not edit the files in the `public/` directory**</u>. Instead, you should edit the files under the `source/` directory. In addition to editing patterns under the `source/` directory you'll want to [edit your JavaScript, CSS, and images](/docs/node/pattern-managing-assets.html) as well. Each time your site is generated your files will be automatically moved to the `public/` directory and the patterns will be automatically compiled.
36-
37-
Generating the Pattern Lab website after each change can be cumbersome. The Node version of Pattern Lab comes with the ability to [watch files in the `source/` directory for changes, re-generate the site automatically, and reload the browser](/docs/node/advanced-auto-reloading-the-browser.html).
38-
39-
{% endcapture %}
40-
{{ m | markdownify }}
41-
42-
</div>
43-
44-
<!--- end node -->
9+
Generating the Pattern Lab website after each change can be cumbersome. The PHP and Node versions of Pattern Lab come with the ability to [watch files in the `source/` directory for changes and re-generate the site automatically](/docs/advanced-auto-regenerate.html). The Pattern Lab website can also be [automatically reloaded](/docs/advanced-reload-browser.html).

0 commit comments

Comments
 (0)