mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-11 12:41:27 +00:00
c24614753ec6308453cd33b83d40e62a501aca46
Closes #35 One caveat, I used the docusaurus [styling and layout](https://docusaurus.io/docs/styling-layout/#styling-your-site-with-infima) color generator and fiddled until I could get a AA contrast ratio, so the colors aren't as exact as the one suggested in https://gitea.com/gitea/gitea-docusaurus/issues/35#issuecomment-742982 (But it still looks better than the blue-green we currently have imo)   Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/53 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.9%
JavaScript
26.7%
CSS
13.8%
Shell
2.4%
Makefile
1.2%