mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-22 02:37:42 +00:00
add 1.19 back in
This commit is contained in:
@@ -13,7 +13,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: https://github.com/actions/setup-node@v3
|
- uses: https://github.com/actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
- name: install necessary tools
|
- name: install necessary tools
|
||||||
run: |
|
run: |
|
||||||
apt update -y && apt install -y rsync python python3-pip
|
apt update -y && apt install -y rsync python python3-pip
|
||||||
|
|||||||
@@ -93,14 +93,13 @@ const config = {
|
|||||||
banner: 'unreleased',
|
banner: 'unreleased',
|
||||||
},
|
},
|
||||||
'1.20': {
|
'1.20': {
|
||||||
label: '1.20.0-rc2',
|
label: '1.20.0'
|
||||||
banner: 'none',
|
|
||||||
},
|
},
|
||||||
'1.19': {
|
'1.19': {
|
||||||
label: '1.19.4',
|
label: '1.19.4',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lastVersion: '1.19',
|
lastVersion: '1.20',
|
||||||
async sidebarItemsGenerator({defaultSidebarItemsGenerator, ...args}) {
|
async sidebarItemsGenerator({defaultSidebarItemsGenerator, ...args}) {
|
||||||
const {item} = args;
|
const {item} = args;
|
||||||
// Use the provided data to generate a custom sidebar slice
|
// Use the provided data to generate a custom sidebar slice
|
||||||
@@ -163,7 +162,7 @@ const config = {
|
|||||||
label: 'Docs',
|
label: 'Docs',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
to: '/api/1.19/',
|
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|next)/',
|
||||||
@@ -181,7 +180,7 @@ const config = {
|
|||||||
position: 'right',
|
position: 'right',
|
||||||
items: [
|
items: [
|
||||||
{to: '/api/next/', label: '1.21-dev' },
|
{to: '/api/next/', label: '1.21-dev' },
|
||||||
{to: '/api/1.20/', label: '1.20.0-rc2' },
|
{to: '/api/1.20/', label: '1.20.0' },
|
||||||
{to: '/api/1.19/', label: '1.19.4' },
|
{to: '/api/1.19/', label: '1.19.4' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ if [ "$version" == "1.19" ]; then
|
|||||||
minorVer="1.19.4"
|
minorVer="1.19.4"
|
||||||
minGoVer="1.19"
|
minGoVer="1.19"
|
||||||
elif [ "$version" == "1.20" ]; then
|
elif [ "$version" == "1.20" ]; then
|
||||||
minorVer="1.20.0-rc2"
|
minorVer="1.20.0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docs_dir="versioned_docs/version-$version"
|
docs_dir="versioned_docs/version-$version"
|
||||||
|
|||||||
Reference in New Issue
Block a user