Add v1.20 documentation (#28)

Modified `loop_docs.sh` to take `version` and `locale` and params so do not need other `loop_docs*` scripts.

Need confirmation with version information for 1.20 and latest.
Like version in `static/20-swagger.json` and `static/latest-swagger.json`, and version used to replace `{{< version >}}`

Will wait for a stable version for 1.20

![Screen Shot 2023-06-14 at 12.12.18](/attachments/1b316978-0daf-46bb-90a7-632a0fc80898)

Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/28
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: HesterG <hestergong@gmail.com>
Co-committed-by: HesterG <hestergong@gmail.com>
This commit is contained in:
HesterG
2023-06-14 07:05:13 +00:00
committed by Lunny Xiao
parent 9bc53d050e
commit 7ca358b43e
12 changed files with 212 additions and 214 deletions

2
.gitignore vendored
View File

@@ -26,5 +26,7 @@ static/_headers
static/_redirects
static/latest-swagger.json
static/19-swagger.json
static/20-swagger.json
i18n/zh-cn/docusaurus-plugin-content-docs/current
i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19
i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20