docs: add facetFilters version v2

This commit is contained in:
chenjiahan 2021-01-12 20:04:04 +08:00
parent 183732d7b3
commit 0cb3b9e12e

View File

@ -43,6 +43,9 @@ module.exports = {
apiKey: '90067aecdaa2c85220e2783cd305caac',
indexName: 'vant',
placeholder: '搜索文档...',
algoliaOptions: {
facetFilters: ['version:v2'],
},
transformData(hits) {
if (location.hostname === 'vant-contrib.gitee.io') {
hits.forEach((hit) => {
@ -438,6 +441,9 @@ module.exports = {
apiKey: '90067aecdaa2c85220e2783cd305caac',
indexName: 'vant',
placeholder: 'Search...',
algoliaOptions: {
facetFilters: ['version:v2'],
},
},
nav: [
{