[Doc] add nav link (#408)

This commit is contained in:
neverland 2018-08-12 17:00:50 +08:00 committed by GitHub
parent 96e3bf74e8
commit d8284b3e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,5 @@
<template>
<van-doc :config="config" simulator="./preview.html">
<van-doc :config="config" simulator="./preview.html" active="小程序组件">
<router-view />
</van-doc>
</template>

View File

@ -10,7 +10,9 @@ module.exports = {
href: '#/'
},
nav: {
github: 'https://github.com/youzan/vant'
'Vue 组件': 'https://youzan.github.io/vant/',
'小程序组件': 'https://youzan.github.io/vant-weapp/',
github: 'https://github.com/youzan/vant-weapp'
}
},
nav: [

View File

@ -58,7 +58,7 @@
"shelljs": "^0.8.2",
"style-loader": "^0.22.1",
"url-loader": "^1.0.1",
"vant-doc": "^1.0.13",
"vant-doc": "^1.0.14",
"vue": "2.5.17",
"vue-loader": "^15.2.6",
"vue-router": "^3.0.1",

View File

@ -6761,9 +6761,9 @@ validate-npm-package-license@^3.0.1:
spdx-correct "^3.0.0"
spdx-expression-parse "^3.0.0"
vant-doc@^1.0.13:
version "1.0.13"
resolved "https://registry.yarnpkg.com/vant-doc/-/vant-doc-1.0.13.tgz#d5a6b35fb85e65e0846097f5a90007efa3d485a1"
vant-doc@^1.0.14:
version "1.0.14"
resolved "https://registry.yarnpkg.com/vant-doc/-/vant-doc-1.0.14.tgz#c7f259e5b535b140a7025c6b5397611430551199"
dependencies:
cheerio "0.22.0"
commander "^2.17.1"