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
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,15 @@ If you want to submit a new feature or a bugfix, the best way is to create the c
41
41
* The top of each Markdown file is a block of YAML for page specific localization information that is passed to various templates.
42
42
* The bulk of the Markdown content for each page is referenced as `{{{content}}}` in the corresponding template.
43
43
44
+
### Serve/Build Options
45
+
46
+
*`DEFAULT_LOCALE={{locale}} npm run serve` builds only the files present in the specified locale folder (will display 404 if file is not present)
47
+
*`DEFAULT_LOCALE={{locale}} npm run serve -- --preserveLocale` builds the files present in the specified locale folder and adds the pages present in the english locale that are missing.
48
+
*`npm run serve` builds all languages and returns 404 when a file is not present in the current locale
49
+
*`npm run serve -- --preserveLocale` builds all languages and adds the pages present in the english locale that are missing.
50
+
* Multiple locales can be built by using comma separated values in the DEFAULT_LOCALE option. i.e: DEFAULT_LOCALE=en,es,it
51
+
52
+
44
53
### Deployment
45
54
46
55
Full set up is in https://github.com/nodejs/build/tree/master/setup/www minus secrets and certificates. The webhook is setup on GitHub for this project and talks to a small Node server on the host which does the work. See the [github-webhook](https://github.com/rvagg/github-webhook) package for this.
0 commit comments