1
0
Fork 0
 
 
 
 
Go to file
HesterG 9bc53d050e Use mdxa to point to versioned links (#27)
Close #17

mdxa is another component that is safe to eject

![Screen Shot 2023-06-08 at 09.56.29](/attachments/b5af1044-9e3f-4776-91a1-ed6f69e2e3a7)

And right now some links are using `master` as the branch(link will be redirect to `main`), so checked for that as well.

Update:

Change `master` to `main` in upstream, so also removed check for `master`

https://github.com/go-gitea/gitea/pull/25126

# After

For example:

![Screen Shot 2023-06-08 at 09.52.05](/attachments/5033b2ca-b51d-47da-ba20-a420e7613626)

![Screen Shot 2023-06-08 at 09.52.33](/attachments/6e7c75f5-01ab-40b4-a57c-df8edb81f677)

![Screen Shot 2023-06-08 at 09.52.47](/attachments/185eb828-6346-48a9-96cc-2beb6353410c)

![Screen Shot 2023-06-08 at 09.53.50](/attachments/f6c57dc1-d452-47f0-b4fc-f3766008ab57)

Reviewed-on: gitea/gitea-docusaurus#27
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: HesterG <hesterg@noreply.gitea.com>
Co-committed-by: HesterG <hesterg@noreply.gitea.com>
2023-06-09 06:57:18 +00:00
.gitea/workflows fix typo and some seds for <empty> (#15) 2023-05-26 17:49:55 +08:00
i18n Add outdated component to outdated documents (#25) 2023-06-08 03:34:23 +00:00
src Use mdxa to point to versioned links (#27) 2023-06-09 06:57:18 +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
.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 Add Chinese support (#13) 2023-05-26 14:30:13 +08:00
Makefile Add outdated component to outdated documents (#25) 2023-06-08 03:34:23 +00:00
README.md 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
check_outdated.sh Add outdated component to outdated documents (#25) 2023-06-08 03:34:23 +00:00
docusaurus.config.js Add outdated component to outdated documents (#25) 2023-06-08 03:34:23 +00:00
loop_docs-19-zh-cn.sh Add outdated component to outdated documents (#25) 2023-06-08 03:34:23 +00:00
loop_docs-19.sh Add outdated component to outdated documents (#25) 2023-06-08 03:34:23 +00:00
loop_docs-zh-cn.sh Add outdated component to outdated documents (#25) 2023-06-08 03:34:23 +00:00
loop_docs.sh Add outdated component to outdated documents (#25) 2023-06-08 03:34:23 +00: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
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

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