mirror of
https://gitea.com/gitea/docs.git
synced 2026-09-17 19:55:34 +00:00
90d58001172f68d01b0206b03ce8c51b520461ca
The command order of prepare-docs is incorrect. We should prepare same version with different locale at once, otherwise the doc files for `zh-cn` in `i18n` folder will be incorrect. Before: (files in current is as same as version 1.19)  After:  Co-authored-by: Lunny Xiao <[email protected]> Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/92 Reviewed-by: Lunny Xiao <[email protected]> Reviewed-by: silverwind <[email protected]> Co-authored-by: yp05327 <[email protected]> Co-committed-by: yp05327 <[email protected]>
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
Languages
TypeScript
42.4%
MDX
30.9%
Astro
8.1%
JavaScript
6.4%
Shell
6%
Other
6.2%