forked from gitea/gitea-docusaurus
Changes: 1. Dark mdoe colors for announcement bar, used the way in [CSS module class names in the document](https://docusaurus.io/docs/styling-layout#global-styles) to change the style. 2. Fix edit url. Right now, clicking on "edit url" will redirect to lastest version of documents no matter from v1.19 or current version. Reviewed-on: gitea/gitea-docusaurus#20 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: HesterG <hestergong@gmail.com> Co-committed-by: HesterG <hestergong@gmail.com> |
||
---|---|---|
.gitea/workflows | ||
i18n | ||
src/css | ||
static | ||
versioned_sidebars | ||
.gitignore | ||
Makefile | ||
README.md | ||
babel.config.js | ||
docusaurus.config.js | ||
loop_docs-19-zh-cn.sh | ||
loop_docs-19.sh | ||
loop_docs-zh-cn.sh | ||
loop_docs.sh | ||
package-lock.json | ||
package.json | ||
sidebars.js | ||
versions.json |
README.md
Gitea Docusaurus
How to build
make clean
make build
Development
make clean
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