docs: add link to v3 docs (#11196)

This commit is contained in:
翠 / green 2022-12-05 20:53:43 +09:00 committed by GitHub
parent 4ec9f53d6f
commit 074b63eaea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,9 +35,13 @@ const versionLinks = ((): DefaultTheme.NavItemWithLink[] => {
case 'local':
return [
{
text: 'Vite 3 Docs (release)',
text: 'Vite 4 Docs (release)',
link: 'https://vitejs.dev',
},
{
text: 'Vite 3 Docs',
link: 'https://v3.vitejs.dev',
},
{
text: 'Vite 2 Docs',
link: 'https://v2.vitejs.dev',
@ -45,6 +49,10 @@ const versionLinks = ((): DefaultTheme.NavItemWithLink[] => {
]
case 'release':
return [
{
text: 'Vite 3 Docs',
link: 'https://v3.vitejs.dev',
},
{
text: 'Vite 2 Docs',
link: 'https://v2.vitejs.dev',