File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ ``` shell
2+ //docusaurus 清理
3+ npm run clear
4+ //生成
5+ npm run build
6+ //启动所有语言预览
7+ npm run serve
8+ //启动默认语言的预览
9+ npm run start
10+
11+ //i18n写入配置文件,.js文件
12+ yarn run write-translations -- --locale en
13+ yarn run write-translations -- --locale zh
14+
15+ //拷贝en语言的md文件
16+ cp -r docs/** i18n/en/docusaurus-plugin-content-docs/current
17+
18+ //拷贝en语言的md文件
19+ Copy-Item -Path docs -Destination i18n/en/docusaurus-plugin-content-docs/current -Recurse -Force
20+ Copy-Item -Path docs -Destination i18n/zh/docusaurus-plugin-content-docs/current -Recurse -Force
21+
22+ mkdir -p i18n/en/docusaurus-plugin-content-blog
23+
24+ https://www.youtube.com/watch? v=2Arz1j5n2u0
25+
26+ ...\w ebsite\i 18n\e n\d ocusaurus-plugin-content-docs\c urrent\d ocs\d oc
27+ ...\w ebsite\i 18n\z h\d ocusaurus-plugin-content-docs\c urrent\d ocs\d oc
28+ ```
29+
You can’t perform that action at this time.
0 commit comments