docs: remove search from v3 site (#10646)

This commit is contained in:
neverland 2022-05-29 10:00:32 +08:00 committed by GitHub
parent 95bee73624
commit d5f8963d02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,26 +46,6 @@ export default {
url: 'https://github.com/youzan/vant', url: 'https://github.com/youzan/vant',
}, },
], ],
searchConfig: {
appId: 'BLI2GGOUL8',
apiKey: '07cb725cd26aa496996de6cb8ab9b5cc',
indexName: 'vant',
searchParameters: {
facetFilters: ['lang:zh-CN', 'version:v3'],
},
transformItems(items) {
if (location.hostname !== 'youzan.github.io') {
items.forEach((item) => {
if (item.url) {
item.url =
item.url &&
item.url.replace('youzan.github.io', location.hostname);
}
});
}
return items;
},
},
nav: [ nav: [
{ {
title: '开发指南', title: '开发指南',
@ -490,14 +470,6 @@ export default {
url: 'https://github.com/youzan/vant', url: 'https://github.com/youzan/vant',
}, },
], ],
searchConfig: {
appId: 'BLI2GGOUL8',
apiKey: '07cb725cd26aa496996de6cb8ab9b5cc',
indexName: 'vant',
searchParameters: {
facetFilters: ['lang:en-US', 'version:v3'],
},
},
nav: [ nav: [
{ {
title: 'Essentials', title: 'Essentials',