Skip to content

Commit

Permalink
docs: link correctly to vite 5/6 docs versions (vitejs#18795)
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum authored Nov 27, 2024
1 parent 32ac96f commit 8d57436
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ const additionalTitle = ((): string => {
})()
const versionLinks = ((): DefaultTheme.NavItemWithLink[] => {
const oldVersions: DefaultTheme.NavItemWithLink[] = [
{
text: 'Vite 5 Docs',
link: 'https://v5.vite.dev',
},
{
text: 'Vite 4 Docs',
link: 'https://v4.vite.dev',
Expand All @@ -57,7 +61,7 @@ const versionLinks = ((): DefaultTheme.NavItemWithLink[] => {
case 'local':
return [
{
text: 'Vite 5 Docs (release)',
text: 'Vite 6 Docs (release)',
link: 'https://vite.dev',
},
...oldVersions,
Expand Down

0 comments on commit 8d57436

Please sign in to comment.