mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: add facetFilters version v2
This commit is contained in:
parent
183732d7b3
commit
0cb3b9e12e
@ -43,6 +43,9 @@ module.exports = {
|
|||||||
apiKey: '90067aecdaa2c85220e2783cd305caac',
|
apiKey: '90067aecdaa2c85220e2783cd305caac',
|
||||||
indexName: 'vant',
|
indexName: 'vant',
|
||||||
placeholder: '搜索文档...',
|
placeholder: '搜索文档...',
|
||||||
|
algoliaOptions: {
|
||||||
|
facetFilters: ['version:v2'],
|
||||||
|
},
|
||||||
transformData(hits) {
|
transformData(hits) {
|
||||||
if (location.hostname === 'vant-contrib.gitee.io') {
|
if (location.hostname === 'vant-contrib.gitee.io') {
|
||||||
hits.forEach((hit) => {
|
hits.forEach((hit) => {
|
||||||
@ -438,6 +441,9 @@ module.exports = {
|
|||||||
apiKey: '90067aecdaa2c85220e2783cd305caac',
|
apiKey: '90067aecdaa2c85220e2783cd305caac',
|
||||||
indexName: 'vant',
|
indexName: 'vant',
|
||||||
placeholder: 'Search...',
|
placeholder: 'Search...',
|
||||||
|
algoliaOptions: {
|
||||||
|
facetFilters: ['version:v2'],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
nav: [
|
nav: [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user