mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-23 20:55:55 +00:00
52841fa1d9d034645571ce0a166f8313d1b988ba
These are some things I changed to make local development easier, especially when having to update multiple versions of docs at once like the docusaurus v3 update. i.e. ```makefile GITEA_REMOTE := ~/code/code.gitea.io/gitea GITEA_LATEST_BRANCH := docs-v3 GITEA_VERSION_BRANCH_PREFIX := docs-v3- ... ``` to run the Makefile against my local repo. Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/89 Co-authored-by: jolheiser <john.olheiser@gmail.com> Co-committed-by: jolheiser <john.olheiser@gmail.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
MDX
55.8%
JavaScript
26.8%
CSS
13.8%
Shell
2.4%
Makefile
1.2%