diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 19dda3841c7031..8fc6321f12212e 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -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',