mirror of
https://gitea.com/gitea/docs.git
synced 2026-03-27 14:11:03 +07:00
11617bdcb28e2853a577ce47c867dfb4b73f1652
**before**  **after**  Co-authored-by: HEREYUA <1240335630@qq.com> Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/113 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: Jason Song <i@wolfogre.com> Co-authored-by: liuyu <liuyu@noreply.gitea.com> Co-committed-by: liuyu <liuyu@noreply.gitea.com>
Gitea Docusaurus
How to build
make clean
make prepare-docs
make build
Development
make clean
make prepare-docs
make serve
Test en version
npm run start
Test zh-cn version
npm run start -- --locale zh-cn
Translate presets for zh-cn version
npx docusaurus write-translations --locale zh-cn
Test both zh-cn and en versions
npm run build
npm run serve
Use CSR Api
This is for development, api pages will be CSR so this saves building time
npm run start-CSRApi
npm run build-CSRApi
Description
Languages
JavaScript
61.1%
CSS
30.5%
Shell
5.3%
Makefile
2.8%
MDX
0.3%