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