File tree Expand file tree Collapse file tree 3 files changed +32
-3
lines changed
Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 1+ # EditorConfig is awesome: https://EditorConfig.org
2+ # https://github.com/editorconfig/editorconfig/wiki/Projects-Using-EditorConfig
3+
4+ root = true
5+
6+ [* ]
7+ insert_final_newline = true
8+ charset = utf-8
9+ trim_trailing_whitespace = true
10+ end_of_line = lf
11+
12+ [* .{md,markdown} ]
13+ trim_trailing_whitespace = false
14+ indent_size = 2
15+ indent_style = space
Original file line number Diff line number Diff line change 11# swoole docs
22
3- ## development
3+ ## development live preview doc
44
55``` shell
66
7- npm install
7+ # npm install -g pnpm
8+
9+ pnpm install
810# with npm china mirror registry
9- # npm install --registry=https://registry.npmmirror.com
11+ # pnpm install --registry=https://registry.npmmirror.com
1012
1113npm run dev
1214
1315```
16+
17+ ## generate doc
18+
19+ 默认 web 工作目录位于 public
20+ The default public web directory is public
21+
22+ ``` shell
23+
24+ npm run build
25+
26+ ```
Original file line number Diff line number Diff line change 1414 },
1515 "scripts" : {
1616 "dev" : " cd public && npx docsify start ." ,
17+ "build" : " cd public && { echo 'web working directory: '$(pwd) ; } && { test -f _sidebar.md && rm -f _sidebar.md ; } && npx docsify generate . " ,
1718 "authors" : " git log --format=\" %aN <%aE>\" | sort -u"
1819 }
1920}
You can’t perform that action at this time.
0 commit comments