mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-16 07:01:27 +00:00
d3697c65d25e763ff9f36d1db1888610612ec0b5
Should also fix the build failure on main under node 20: https://github.com/facebook/docusaurus/issues/9278 Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/68 Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com> Co-authored-by: silverwind <me@silverwind.io> Co-committed-by: silverwind <me@silverwind.io>
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
MDX
55.8%
JavaScript
26.8%
CSS
13.8%
Shell
2.4%
Makefile
1.2%