]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: dropdown version
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 10 Feb 2025 08:41:52 +0000 (09:41 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 10 Feb 2025 08:41:52 +0000 (09:41 +0100)
packages/docs/.vitepress/config/en.ts
packages/docs/.vitepress/config/zh.ts

index 0cb3dfb68332ca09ef5a510caf6cb025943d00c3..574714331402a8fd9e3fd4c25ab75e0653f2a991 100644 (file)
@@ -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' }],
+          },
         ],
       },
     ],
index 156e5ba6587a7da5e6275ff6e8ffa7a0cf39105d..8ed54f0597c1ba6e9baa8cc9d55a20e19f7da914 100644 (file)
@@ -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/': [