Skip to content

Commit 378004b

Browse files
committed
docs: dropdown version
1 parent b9a65fb commit 378004b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/docs/.vitepress/config/en.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
4747
text: 'Vue.js Certification',
4848
link: 'https://certificates.dev/vuejs/?friend=VUEROUTER&utm_source=pinia_vuejs&utm_medium=link&utm_campaign=pinia_vuejs_links&utm_content=navbar',
4949
},
50+
{
51+
text: 'v3.x',
52+
items: [{ text: 'v2.x', link: 'https://v2.pinia.vuejs.org' }],
53+
},
5054
],
5155
},
5256
],

packages/docs/.vitepress/config/zh.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ export const zhConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
5858
},
5959
],
6060
},
61+
{
62+
text: 'v3.x',
63+
items: [{ text: 'v2.x', link: 'https://v2.pinia.vuejs.org' }],
64+
},
6165
],
6266
sidebar: {
6367
'/zh/api/': [

0 commit comments

Comments
 (0)