Go to file
HesterG 8c38ae516a Fix edit url and announcement bar color on dark mode (#20)
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>
2023-05-30 09:42:46 +00:00
.gitea/workflows fix typo and some seds for <empty> (#15) 2023-05-26 17:49:55 +08:00
i18n Use capitals for actions and packages (#19) 2023-05-29 10:28:05 +00:00
src/css Fix edit url and announcement bar color on dark mode (#20) 2023-05-30 09:42:46 +00:00
static first commit 2023-02-02 23:30:20 -05:00
versioned_sidebars Add Chinese support (#13) 2023-05-26 14:30:13 +08:00
.gitignore Add Chinese support (#13) 2023-05-26 14:30:13 +08:00
babel.config.js first commit 2023-02-02 23:30:20 -05:00
docusaurus.config.js Fix edit url and announcement bar color on dark mode (#20) 2023-05-30 09:42:46 +00:00
loop_docs-19-zh-cn.sh Fix relrefs by following formats allowed by docusaurus (#18) 2023-05-29 16:24:40 +00:00
loop_docs-19.sh Fix relrefs by following formats allowed by docusaurus (#18) 2023-05-29 16:24:40 +00:00
loop_docs-zh-cn.sh Fix relrefs by following formats allowed by docusaurus (#18) 2023-05-29 16:24:40 +00:00
loop_docs.sh Fix relrefs by following formats allowed by docusaurus (#18) 2023-05-29 16:24:40 +00:00
Makefile Add Chinese support (#13) 2023-05-26 14:30:13 +08:00
package-lock.json bump docusaurus 2023-03-04 00:51:12 -05:00
package.json bump docusaurus 2023-03-04 00:51:12 -05:00
README.md Add Chinese support (#13) 2023-05-26 14:30:13 +08:00
sidebars.js Add Chinese support (#13) 2023-05-26 14:30:13 +08:00
versions.json rm 1.18 steps 2023-03-25 01:54:21 -04:00

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