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
{{ message }}
Repository navigation
Commit 008aedb
Browse filesBrowse the repository at this point in the historyBrowse files
`start` accepts a **single** locale — a second `--locale` is silently ignored (the last one wins) — so run one dev server per language on different ports.
32
47
33
48
### Adding or Editing Pages
34
49
35
50
- To **edit** an existing page, find the corresponding `.md` file in `docs/` and make your changes.
36
51
- To **add** a new page, create a new `.md` file in the appropriate subdirectory of `docs/`.
37
52
- Remember to update the **metadata** (front matter) at the top of the file:
53
+
38
54
```markdown
39
55
---
40
56
title: Page Title
@@ -58,29 +74,38 @@ npm i
58
74
### Local Development
59
75
60
76
```bash
61
-
npm start
77
+
npm start # default locale
78
+
npm start -- --locale pt-BR # specific locale
62
79
```
63
80
64
81
### Build
65
82
66
83
```bash
67
-
npm run build
84
+
npm run build # all locales
85
+
npm run build -- --locale pt-BR # one locale
86
+
npm run build -- --locale en --locale pt-BR --locale zh-CN # several locales
68
87
```
69
88
70
89
This command generates static content into the `build` directory.
71
90
91
+
### Local Preview
92
+
93
+
```bash
94
+
npm run serve
95
+
```
96
+
72
97
### Deployment
73
98
74
99
Using SSH:
75
100
76
101
```
77
-
$ USE_SSH=true yarn deploy
102
+
USE_SSH=true npm run deploy
78
103
```
79
104
80
105
Not using SSH:
81
106
82
107
```
83
-
$ GIT_USER=<YourGitHubusername> yarn deploy
108
+
GIT_USER=<Your GitHub username> npm run deploy
84
109
```
85
110
86
111
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
0 commit comments