mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-21 18:27:41 +00:00
Fix build
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -27,3 +27,4 @@ versioned_docs/
|
|||||||
i18n/zh-cn/docusaurus-plugin-content-docs/current
|
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.19
|
||||||
i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20
|
i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20
|
||||||
|
i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ const config = {
|
|||||||
banner: 'unreleased',
|
banner: 'unreleased',
|
||||||
},
|
},
|
||||||
'1.21': {
|
'1.21': {
|
||||||
label: '1.21-rc0',
|
label: '1.21.0-rc0',
|
||||||
},
|
},
|
||||||
'1.20': {
|
'1.20': {
|
||||||
label: '1.20.4'
|
label: '1.20.4'
|
||||||
@@ -181,7 +181,7 @@ const config = {
|
|||||||
to: '/api/1.20/',
|
to: '/api/1.20/',
|
||||||
label: 'API',
|
label: 'API',
|
||||||
position: 'left',
|
position: 'left',
|
||||||
activeBaseRegex: 'api/(1.19|1.20|next)/',
|
activeBaseRegex: 'api/(1.19|1.20|1.21|next)/',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
position: 'left',
|
position: 'left',
|
||||||
@@ -196,8 +196,8 @@ const config = {
|
|||||||
position: 'right',
|
position: 'right',
|
||||||
items: [
|
items: [
|
||||||
{to: '/api/next/', label: '1.22-dev' },
|
{to: '/api/next/', label: '1.22-dev' },
|
||||||
{to: '/api/1.21/', label: '1.21-rc0' },
|
{to: '/api/1.21/', label: '1.21.0-rc0' },
|
||||||
{to: '/api/1.20/', label: '1.20.0' },
|
{to: '/api/1.20/', label: '1.20.4' },
|
||||||
{to: '/api/1.19/', label: '1.19.4' },
|
{to: '/api/1.19/', label: '1.19.4' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ if [ "$version" == "1.19" ]; then
|
|||||||
minGoVer="1.19"
|
minGoVer="1.19"
|
||||||
elif [ "$version" == "1.20" ]; then
|
elif [ "$version" == "1.20" ]; then
|
||||||
minorVer="1.20.4"
|
minorVer="1.20.4"
|
||||||
|
elif [ "$version" == "1.21" ]; then
|
||||||
|
minorVer="1.21.0-rc0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docs_dir="versioned_docs/version-$version"
|
docs_dir="versioned_docs/version-$version"
|
||||||
@@ -54,7 +56,7 @@ SED_INPLACE "s/@minGoVersion@/$minGoVer/" "$docs_dir/installation/from-source.$l
|
|||||||
if [ "$version" == "latest" ]; then
|
if [ "$version" == "latest" ]; then
|
||||||
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.22-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
|
elif [ "$version" == "1.21" ]; then
|
||||||
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.21-rc0"/' static/swagger-21.json
|
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.21.0-rc0"/' static/swagger-21.json
|
||||||
elif [ "$version" == "1.20" ]; then
|
elif [ "$version" == "1.20" ]; then
|
||||||
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.20.4"/' static/swagger-20.json
|
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.20.4"/' static/swagger-20.json
|
||||||
elif [ "$version" == "1.19" ]; then
|
elif [ "$version" == "1.19" ]; then
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
[
|
[
|
||||||
|
"1.21",
|
||||||
"1.20",
|
"1.20",
|
||||||
"1.19"
|
"1.19"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user