Files
docs/README.md
T

52 lines
582 B
Markdown
Raw Normal View History

2023-04-04 22:46:41 +08:00
# Gitea Docusaurus
## How to build
```shell
make clean
2023-07-05 03:54:54 +00:00
make prepare-docs
2023-04-04 22:46:41 +08:00
make build
```
## Development
```shell
make clean
2023-07-05 03:54:54 +00:00
make prepare-docs
2023-04-04 22:46:41 +08:00
make serve
```
2023-05-26 14:30:13 +08:00
## 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
```
2023-07-05 03:54:54 +00:00
## 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
```