Add 1.21rc0

This commit is contained in:
Lunny Xiao
2023-10-01 21:01:57 +08:00
parent cd783f3512
commit b999a774bd
7 changed files with 141 additions and 6 deletions

View File

@@ -24,6 +24,10 @@ jobs:
run: |
make prepare-latest
make prepare-latest-zh-cn
- name: prepare 1.21 docs
run: |
make prepare\#21
make prepare-zh-cn\#21
- name: prepare 1.20 docs
run: |
make prepare\#20
@@ -34,7 +38,7 @@ jobs:
make prepare-zh-cn\#19
- name: prepare awesome list
run: |
make prepare-awesome-latest prepare-awesome\#20 prepare-awesome\#19
make prepare-awesome-latest prepare-awesome\#21 prepare-awesome\#20 prepare-awesome\#19
- name: build site
run: |
make build

View File

@@ -18,6 +18,10 @@ jobs:
run: |
make prepare-latest
make prepare-latest-zh-cn
- name: prepare 1.21 docs
run: |
make prepare\#21
make prepare-zh-cn\#21
- name: prepare 1.20 docs
run: |
make prepare\#20

View File

@@ -94,3 +94,4 @@ clean:
rm -rf static/swagger-latest.json
rm -rf static/swagger-19.json
rm -rf static/swagger-20.json
rm -rf static/swagger-21.json

View File

@@ -24,6 +24,10 @@ const apiConfig = [
spec: 'static/swagger-latest.json',
route: '/api/next/',
},
{
route: '/api/1.21/',
spec: 'static/swagger-21.json',
},
{
route: '/api/1.20/',
spec: 'static/swagger-20.json',
@@ -98,9 +102,12 @@ const config = {
},
versions: {
current: {
label: '1.21-dev', // path is kept as next for dev (so users can always find "nightly" docs)
label: '1.22-dev', // path is kept as next for dev (so users can always find "nightly" docs)
banner: 'unreleased',
},
'1.21': {
label: '1.21-rc0',
},
'1.20': {
label: '1.20.4'
},
@@ -188,7 +195,8 @@ const config = {
label: 'API Version',
position: 'right',
items: [
{to: '/api/next/', label: '1.21-dev' },
{to: '/api/next/', label: '1.22-dev' },
{to: '/api/1.21/', label: '1.21-rc0' },
{to: '/api/1.20/', label: '1.20.0' },
{to: '/api/1.19/', label: '1.19.4' },
],
@@ -249,8 +257,8 @@ const config = {
href: 'https://matrix.to/#/#gitea-space:matrix.org',
},
{
label: 'Discourse',
href: 'https://discourse.gitea.io/',
label: 'Forum',
href: 'https://forum.gitea.com/',
},
{
label: 'Twitter',

View File

@@ -0,0 +1,29 @@
{
"sidebar.docs.category.Installation": {
"message": "安装"
},
"sidebar.docs.category.Administration": {
"message": "管理"
},
"sidebar.docs.category.Usage": {
"message": "使用"
},
"sidebar.docs.category.actions": {
"message": "Actions"
},
"sidebar.docs.category.packages": {
"message": "软件包"
},
"sidebar.docs.category.Development": {
"message": "开发"
},
"sidebar.docs.category.Contributing": {
"message": "贡献"
},
"sidebar.docs.category.Help": {
"message": "帮助"
},
"sidebar.docs.doc.What is Gitea?": {
"message": "Gitea是什么?"
}
}

View File

@@ -52,7 +52,9 @@ SED_INPLACE "s/@minGoVersion@/$minGoVer/" "$docs_dir/installation/from-source.$l
# TODO: improve this sed
# need confirmation
if [ "$version" == "latest" ]; then
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.21-dev"/' static/swagger-latest.json
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.22-dev"/' static/swagger-latest.json
elif [ "$version" == "1.21" ]; then
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.21-rc0"/' static/swagger-21.json
elif [ "$version" == "1.20" ]; then
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.20.4"/' static/swagger-20.json
elif [ "$version" == "1.19" ]; then

View File

@@ -0,0 +1,87 @@
{
"docs": [
{
"type": "doc",
"id": "intro",
"label": "What is Gitea?"
},
{
"type": "category",
"label": "Installation",
"link": {
"type": "generated-index"
},
"items": [
{
"type": "autogenerated",
"dirName": "installation"
}
]
},
{
"type": "category",
"label": "Administration",
"link": {
"type": "generated-index"
},
"items": [
{
"type": "autogenerated",
"dirName": "administration"
}
]
},
{
"type": "category",
"label": "Usage",
"link": {
"type": "generated-index"
},
"items": [
{
"type": "autogenerated",
"dirName": "usage"
}
]
},
{
"type": "category",
"label": "Development",
"link": {
"type": "generated-index"
},
"items": [
{
"type": "autogenerated",
"dirName": "development"
}
]
},
{
"type": "category",
"label": "Contributing",
"link": {
"type": "generated-index"
},
"items": [
{
"type": "autogenerated",
"dirName": "contributing"
}
]
},
{
"type": "category",
"label": "Help",
"link": {
"type": "generated-index"
},
"items": [
{
"type": "autogenerated",
"dirName": "help"
}
]
}
]
}