forked from gitea/gitea-docusaurus
yp05327
90d5800117
Some checks failed
Build and Publish Docs site / build-docs (push) Has been cancelled
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) ![image](/attachments/81a25d85-ec8e-45dc-b1a1-31d945ae3bfa) After: ![image](/attachments/31831db4-4f89-45a0-8685-5252665d747b) Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-on: gitea/gitea-docusaurus#92 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: silverwind <silverwind@noreply.gitea.com> Co-authored-by: yp05327 <576951401@qq.com> Co-committed-by: yp05327 <576951401@qq.com> |
||
---|---|---|
.gitea/workflows | ||
i18n | ||
src | ||
static | ||
versioned_sidebars | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.npmrc | ||
.trans-copy.sh | ||
babel.config.js | ||
check_outdated.sh | ||
docusaurus.config.js | ||
loop_docs.sh | ||
Makefile | ||
package-lock.json | ||
package.json | ||
README.md | ||
renovate.json5 | ||
sidebars.js | ||
versions.json |
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