File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
packages/docs/.vitepress/config Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff 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 : {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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/' : [
You can’t perform that action at this time.
0 commit comments