Skip to content

Commit bd92acc

Browse files
committed
[Doc] add weapp logo link
1 parent dc1b0ee commit bd92acc

4 files changed

Lines changed: 24 additions & 8 deletions

File tree

build/release-site.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env sh
22
rm -rf docs/dist
33

4-
npx cross-env NODE_ENV=production webpack --config build/webpack.doc.js
4+
npx cross-env NODE_ENV=production webpack --config build/webpack.site.js
55

66
superman-cdn cdn /vant ./docs/dist/*.js
77

docs/site/doc.config.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,17 @@ export default {
2424
text: 'En',
2525
from: 'zh-CN',
2626
to: 'en-US'
27-
}
27+
},
28+
logoLink: [
29+
{
30+
image: 'https://b.yzcdn.cn/vant/logo/weapp.svg',
31+
url: 'https://youzan.github.io/vant-weapp'
32+
},
33+
{
34+
image: 'https://b.yzcdn.cn/vant/logo/github.svg',
35+
url: github
36+
}
37+
]
2838
}
2939
},
3040
nav: [
@@ -378,7 +388,13 @@ export default {
378388
text: '中文',
379389
from: 'en-US',
380390
to: 'zh-CN'
381-
}
391+
},
392+
logoLink: [
393+
{
394+
image: 'https://b.yzcdn.cn/vant/logo/github.svg',
395+
url: github
396+
}
397+
]
382398
}
383399
},
384400
nav: [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"@babel/preset-env": "^7.5.5",
7070
"@babel/preset-typescript": "^7.3.3",
7171
"@types/jest": "^24.0.16",
72-
"@vant/doc": "^2.3.6",
72+
"@vant/doc": "^2.4.0",
7373
"@vant/eslint-config": "^1.2.4",
7474
"@vant/markdown-loader": "^2.2.0",
7575
"@vant/markdown-vetur": "^1.0.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,10 +1202,10 @@
12021202
lodash.unescape "4.0.1"
12031203
semver "5.5.0"
12041204

1205-
"@vant/doc@^2.3.6":
1206-
version "2.3.6"
1207-
resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.3.6.tgz#821ac94bd0b19800458193e9f884e8c95a90634a"
1208-
integrity sha512-G7iXa1BIK7JgoCYYWbOnZ4WQXE7FftXhRRC4Fqy69+OUjsQ/BQ0BZdJSbMiHSPJR2Olz7o67SgmfPqGWUHl2Sg==
1205+
"@vant/doc@^2.4.0":
1206+
version "2.4.0"
1207+
resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.4.0.tgz#d0d2d03e7ed831795ebdf9d840208614d4051057"
1208+
integrity sha512-lahIcEFfdvVQuicQpgKoPIw5PxV868XAsl8N3tLFBJ0DvOoI7nJB1fYICbpWeC5DShTq2Y/UMhd/DYco+Qimjg==
12091209
dependencies:
12101210
cheerio "0.22.0"
12111211
commander "^2.17.1"

0 commit comments

Comments
 (0)