]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: local search and nav links (#2909)
authorEduardo San Martin Morote <posva@users.noreply.github.com>
Tue, 11 Feb 2025 14:21:15 +0000 (15:21 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2025 14:21:15 +0000 (15:21 +0100)
packages/docs/.vitepress/config/en.ts
packages/docs/.vitepress/config/shared.ts
packages/docs/.vitepress/config/zh.ts

index c74153bd7f55289b318155e2a2ec102de3549dbc..13d3eb94d01b4b819c04583ec5b3d35d87c05e02 100644 (file)
@@ -49,6 +49,10 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
           },
         ],
       },
+      {
+        text: 'v2.x',
+        items: [{ text: 'v3.x', link: 'https://pinia.vuejs.org' }],
+      },
     ],
 
     sidebar: {
index afac80ece73d44c2dde1ea7e735556503223afe4..94ebb66fd77302b35a600c9b917a31320619c180 100644 (file)
@@ -133,12 +133,11 @@ export const sharedConfig = defineConfig({
     },
 
     search: {
-      provider: 'algolia',
+      provider: 'local',
       options: {
-        appId: '69Y3N7LHI2',
-        apiKey: '45441f4b65a2f80329fd45c7cb371fea',
-        indexName: 'pinia',
-        locales: { ...zhSearch },
+        locales: {
+          ...zhSearch,
+        },
       },
     },
 
index 156e5ba6587a7da5e6275ff6e8ffa7a0cf39105d..de1ea920387c6196db9d37e88171dc0cfa3fbe60 100644 (file)
@@ -58,6 +58,10 @@ export const zhConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
           },
         ],
       },
+      {
+        text: 'v2.x',
+        items: [{ text: 'v3.x', link: 'https://pinia.vuejs.org' }],
+      },
     ],
     sidebar: {
       '/zh/api/': [