docs: update version description

This commit is contained in:
chenjiahan
2021-01-09 10:41:16 +08:00
parent fde4f40148
commit 663458e9ce
11 changed files with 22 additions and 22 deletions

View File

@@ -15,8 +15,8 @@ module.exports = {
site: {
defaultLang: 'en-US',
versions: [
{ label: 'Vant 1.x', link: '/vant/1.x/' },
{ label: 'Vant 2.x', link: '/vant/' },
{ label: 'Vant v1', link: '/vant/v1/' },
{ label: 'Vant v2', link: '/vant/' },
{ label: 'Vant Weapp', link: '/vant-weapp/' },
],
baiduAnalytics: {
@@ -24,7 +24,7 @@ module.exports = {
},
htmlPluginOptions: {
meta: {
'docsearch:version': '3.x',
'docsearch:version': 'v3',
},
},
locales: {
@@ -44,7 +44,7 @@ module.exports = {
// apiKey: '90067aecdaa2c85220e2783cd305caac',
// indexName: 'vant',
// searchParameters: {
// facetFilters: ['lang:zh-CN', 'version:3.x'],
// facetFilters: ['lang:zh-CN', 'version:v3'],
// },
// transformItems(items) {
// if (location.hostname !== 'youzan.github.io') {
@@ -425,7 +425,7 @@ module.exports = {
// apiKey: '90067aecdaa2c85220e2783cd305caac',
// indexName: 'vant',
// searchParameters: {
// facetFilters: ['lang:en-US', 'version:3.x'],
// facetFilters: ['lang:en-US', 'version:v3'],
// },
// },
nav: [