Merge branch '2.x' into dev

This commit is contained in:
chenjiahan 2020-12-03 17:42:37 +08:00
commit 4e8576147e
2 changed files with 6 additions and 3 deletions

View File

@ -30,9 +30,6 @@ export default {
docsearch({ docsearch({
...this.searchConfig, ...this.searchConfig,
container: '#docsearch', container: '#docsearch',
searchParameters: {
facetFilters: [`lang:${this.lang}`],
},
}); });
} }
}, },

View File

@ -42,6 +42,9 @@ module.exports = {
searchConfig: { searchConfig: {
apiKey: '90067aecdaa2c85220e2783cd305caac', apiKey: '90067aecdaa2c85220e2783cd305caac',
indexName: 'vant', indexName: 'vant',
searchParameters: {
facetFilters: ['lang:zh-CN', 'version:3.x'],
},
transformItems(items) { transformItems(items) {
if (location.hostname !== 'youzan.github.io') { if (location.hostname !== 'youzan.github.io') {
items.forEach((item) => { items.forEach((item) => {
@ -415,6 +418,9 @@ module.exports = {
searchConfig: { searchConfig: {
apiKey: '90067aecdaa2c85220e2783cd305caac', apiKey: '90067aecdaa2c85220e2783cd305caac',
indexName: 'vant', indexName: 'vant',
searchParameters: {
facetFilters: ['lang:en-US', 'version:3.x'],
},
}, },
nav: [ nav: [
{ {