1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

[Doc] add weapp logo link

This commit is contained in:
陈嘉涵 2019-08-02 16:36:13 +08:00
parent dc1b0ee2e1
commit bd92acc676
4 changed files with 24 additions and 8 deletions

@ -1,7 +1,7 @@
#!/usr/bin/env sh #!/usr/bin/env sh
rm -rf docs/dist rm -rf docs/dist
npx cross-env NODE_ENV=production webpack --config build/webpack.doc.js npx cross-env NODE_ENV=production webpack --config build/webpack.site.js
superman-cdn cdn /vant ./docs/dist/*.js superman-cdn cdn /vant ./docs/dist/*.js

@ -24,7 +24,17 @@ export default {
text: 'En', text: 'En',
from: 'zh-CN', from: 'zh-CN',
to: 'en-US' to: 'en-US'
} },
logoLink: [
{
image: 'https://b.yzcdn.cn/vant/logo/weapp.svg',
url: 'https://youzan.github.io/vant-weapp'
},
{
image: 'https://b.yzcdn.cn/vant/logo/github.svg',
url: github
}
]
} }
}, },
nav: [ nav: [
@ -378,7 +388,13 @@ export default {
text: '中文', text: '中文',
from: 'en-US', from: 'en-US',
to: 'zh-CN' to: 'zh-CN'
} },
logoLink: [
{
image: 'https://b.yzcdn.cn/vant/logo/github.svg',
url: github
}
]
} }
}, },
nav: [ nav: [

@ -69,7 +69,7 @@
"@babel/preset-env": "^7.5.5", "@babel/preset-env": "^7.5.5",
"@babel/preset-typescript": "^7.3.3", "@babel/preset-typescript": "^7.3.3",
"@types/jest": "^24.0.16", "@types/jest": "^24.0.16",
"@vant/doc": "^2.3.6", "@vant/doc": "^2.4.0",
"@vant/eslint-config": "^1.2.4", "@vant/eslint-config": "^1.2.4",
"@vant/markdown-loader": "^2.2.0", "@vant/markdown-loader": "^2.2.0",
"@vant/markdown-vetur": "^1.0.0", "@vant/markdown-vetur": "^1.0.0",

@ -1202,10 +1202,10 @@
lodash.unescape "4.0.1" lodash.unescape "4.0.1"
semver "5.5.0" semver "5.5.0"
"@vant/doc@^2.3.6": "@vant/doc@^2.4.0":
version "2.3.6" version "2.4.0"
resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.3.6.tgz#821ac94bd0b19800458193e9f884e8c95a90634a" resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.4.0.tgz#d0d2d03e7ed831795ebdf9d840208614d4051057"
integrity sha512-G7iXa1BIK7JgoCYYWbOnZ4WQXE7FftXhRRC4Fqy69+OUjsQ/BQ0BZdJSbMiHSPJR2Olz7o67SgmfPqGWUHl2Sg== integrity sha512-lahIcEFfdvVQuicQpgKoPIw5PxV868XAsl8N3tLFBJ0DvOoI7nJB1fYICbpWeC5DShTq2Y/UMhd/DYco+Qimjg==
dependencies: dependencies:
cheerio "0.22.0" cheerio "0.22.0"
commander "^2.17.1" commander "^2.17.1"