Go to file
liuyu bd6c7af320
All checks were successful
Build and Publish Docs site / build-docs (push) Successful in 6m41s
add gtag configuration (#119)
Co-authored-by: HEREYUA <1240335630@qq.com>
Reviewed-on: #119
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Jason Song <i@wolfogre.com>
Co-authored-by: liuyu <liuyu@noreply.gitea.com>
Co-committed-by: liuyu <liuyu@noreply.gitea.com>
2024-03-19 13:39:51 +00:00
.gitea/workflows Update CI (#117) 2024-03-16 03:52:16 +00:00
i18n Add 1.21rc0 2023-10-01 21:01:57 +08:00
src remove useless file (#101) 2024-01-03 10:57:53 +00:00
static Docusaurus-ify main repo (#51) 2023-07-27 14:55:46 +00:00
versioned_sidebars Add 1.21rc0 2023-10-01 21:01:57 +08:00
.editorconfig Add .editorconfig and .gitattributes (#29) 2023-06-08 18:07:59 +00:00
.gitattributes Add .editorconfig and .gitattributes (#29) 2023-06-08 18:07:59 +00:00
.gitignore Fix build 2023-10-01 21:17:05 +08:00
.npmrc Add .npmrc and regenerate package-lock.json (#67) 2023-09-07 14:31:43 +00:00
.trans-copy.sh Bring back trans-copy.sh (#118) 2024-03-16 02:43:09 +00:00
babel.config.js first commit 2023-02-02 23:30:20 -05:00
check_outdated.sh Clone once (#52) 2023-07-28 05:52:35 +00:00
docusaurus.config.js add gtag configuration (#119) 2024-03-19 13:39:51 +00:00
loop_docs.sh Upgrade to v1.21.7 2024-02-28 23:43:35 +08:00
Makefile Fix incorrect command order of prepare-docs (#92) 2024-03-16 13:11:41 +00:00
package-lock.json fix(deps): update dependency @mui/material to v5.15.13 (#115) 2024-03-14 01:40:35 +00:00
package.json fix(deps): update dependency @easyops-cn/docusaurus-search-local to ^0.40.0 (#98) 2024-01-06 05:11:21 +00:00
README.md Add api page (#32) 2023-07-05 03:54:54 +00:00
renovate.json5 Configure Renovate (#71) 2023-10-03 17:13:46 +00:00
sidebars.js Add Chinese support (#13) 2023-05-26 14:30:13 +08:00
versions.json Fix build 2023-10-01 21:17:05 +08:00

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