Skip to content

Commit d8bdedc

Browse files
authored
docs: local search and nav links (#2909)
1 parent 5da0ed5 commit d8bdedc

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
4949
},
5050
],
5151
},
52+
{
53+
text: 'v2.x',
54+
items: [{ text: 'v3.x', link: 'https://pinia.vuejs.org' }],
55+
},
5256
],
5357

5458
sidebar: {

packages/docs/.vitepress/config/shared.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,11 @@ export const sharedConfig = defineConfig({
133133
},
134134

135135
search: {
136-
provider: 'algolia',
136+
provider: 'local',
137137
options: {
138-
appId: '69Y3N7LHI2',
139-
apiKey: '45441f4b65a2f80329fd45c7cb371fea',
140-
indexName: 'pinia',
141-
locales: { ...zhSearch },
138+
locales: {
139+
...zhSearch,
140+
},
142141
},
143142
},
144143

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: 'v2.x',
63+
items: [{ text: 'v3.x', link: 'https://pinia.vuejs.org' }],
64+
},
6165
],
6266
sidebar: {
6367
'/zh/api/': [

0 commit comments

Comments
 (0)