mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
Merge branch '2.x' into dev
This commit is contained in:
commit
4e8576147e
@ -30,9 +30,6 @@ export default {
|
|||||||
docsearch({
|
docsearch({
|
||||||
...this.searchConfig,
|
...this.searchConfig,
|
||||||
container: '#docsearch',
|
container: '#docsearch',
|
||||||
searchParameters: {
|
|
||||||
facetFilters: [`lang:${this.lang}`],
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -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: [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user