docs: remove search from v2 site (#10645)

* docs: remove search from v2 site

* docs: fix typo
This commit is contained in:
neverland 2022-05-29 09:57:05 +08:00 committed by GitHub
parent 00b9efa22c
commit 0e8ea1e6f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 29 deletions

View File

@ -738,7 +738,7 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
- Field: incorrect disabled color in iOS 14 [#7206](https://github.com/youzan/vant/issues/7206)
- List: scoped style not applied to first child [#7202](https://github.com/youzan/vant/issues/7202)
- Swipe: can't disable loop in some cases [#7208](https://github.com/youzan/vant/issues/7208)
- Swipe: incorrect indicator color trantision [#7207](https://github.com/youzan/vant/issues/7207)
- Swipe: incorrect indicator color transition [#7207](https://github.com/youzan/vant/issues/7207)
### [v2.10.7](https://github.com/youzan/vant/compare/v2.10.6...v2.10.7)

View File

@ -40,26 +40,6 @@ module.exports = {
url: 'https://github.com/youzan/vant',
},
],
searchConfig: {
apiKey: '90067aecdaa2c85220e2783cd305caac',
indexName: 'vant',
placeholder: '搜索文档...',
algoliaOptions: {
facetFilters: ['version:v2'],
},
transformData(hits) {
if (location.hostname === 'vant-contrib.gitee.io') {
hits.forEach((hit) => {
if (hit.url) {
hit.url = hit.url.replace(
'youzan.github.io',
'vant-contrib.gitee.io'
);
}
});
}
},
},
nav: [
{
title: '开发指南',
@ -458,14 +438,6 @@ module.exports = {
url: 'https://github.com/youzan/vant',
},
],
searchConfig: {
apiKey: '90067aecdaa2c85220e2783cd305caac',
indexName: 'vant',
placeholder: 'Search...',
algoliaOptions: {
facetFilters: ['version:v2'],
},
},
nav: [
{
title: 'Essentials',