Skip to content

Commit

Permalink
docs: dropdown version
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Feb 10, 2025
1 parent b9a65fb commit 378004b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/docs/.vitepress/config/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
text: 'Vue.js Certification',
link: 'https://certificates.dev/vuejs/?friend=VUEROUTER&utm_source=pinia_vuejs&utm_medium=link&utm_campaign=pinia_vuejs_links&utm_content=navbar',
},
{
text: 'v3.x',
items: [{ text: 'v2.x', link: 'https://v2.pinia.vuejs.org' }],
},
],
},
],
Expand Down
4 changes: 4 additions & 0 deletions packages/docs/.vitepress/config/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ export const zhConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
},
],
},
{
text: 'v3.x',
items: [{ text: 'v2.x', link: 'https://v2.pinia.vuejs.org' }],
},
],
sidebar: {
'/zh/api/': [
Expand Down

0 comments on commit 378004b

Please sign in to comment.