[Doc] update document site (#3620)

This commit is contained in:
neverland 2019-06-24 20:45:31 +08:00 committed by GitHub
parent 934923c949
commit 045c75669b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 21 deletions

View File

@ -6,16 +6,7 @@
:title="title"
:left-arrow="showNav"
@click-left="onBack"
>
<a
v-if="showNav"
slot="right"
:href="demoLink"
target="_blank"
>
<van-icon name="edit" />
</a>
</van-nav-bar>
/>
<keep-alive>
<router-view :weapp="weapp" />
</keep-alive>
@ -41,12 +32,6 @@ export default {
return name ? name.replace(/-/g, '') : '';
},
demoLink() {
return `https://github.com/youzan/vant/blob/dev/packages/${
this.$route.meta.path
}/demo/index.vue`;
},
showNav() {
return getQueryString('hide_nav') !== '1';
},

View File

@ -70,7 +70,7 @@
"@babel/preset-env": "^7.4.5",
"@babel/preset-typescript": "^7.3.3",
"@types/jest": "^24.0.15",
"@vant/doc": "^2.3.2",
"@vant/doc": "^2.3.3",
"@vant/eslint-config": "^1.1.2",
"@vant/markdown-loader": "^2.0.0",
"@vant/markdown-vetur": "^1.0.0",

View File

@ -1092,10 +1092,10 @@
lodash.unescape "4.0.1"
semver "5.5.0"
"@vant/doc@^2.3.2":
version "2.3.2"
resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.3.2.tgz#20f38c3f47f13f0c4dcbc2fdfe7dddeb9943f4b1"
integrity sha512-y4g7DzjyKBiEIghkyWNpCPDPND1nrQFb3tX+iMhi484ic7hlCCVnpVmXf74Cp+7FhSeNjCB/6vSDdJFGAXpw5A==
"@vant/doc@^2.3.3":
version "2.3.3"
resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.3.3.tgz#2e1f7c8cbfcffee6ad3890400df86ed93f578db7"
integrity sha512-2g/dxdkgQxYg1VfpbxIzRAc00s5gb9YUJ3eoYDGMeCpZUVoB6EONPhDr3pOzdqKe/VWGAAZQDnzVaeX6Gab/fg==
dependencies:
cheerio "0.22.0"
commander "^2.17.1"