From 0aab9ba7be2107f309a96f3f221f5ac73ed03269 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 10 Nov 2017 21:33:00 -0600 Subject: [PATCH] [new feature] update document header style (#306) * fix: Tabbar icon line-height * [new feature] progress add showPivot prop * [new feature] TabItem support vue-router * [new feature] update document header style --- docs/src/DocsApp.vue | 8 -------- docs/src/doc.config.js | 16 ++++++++++++---- package.json | 6 +----- yarn.lock | 6 +++--- 4 files changed, 16 insertions(+), 20 deletions(-) diff --git a/docs/src/DocsApp.vue b/docs/src/DocsApp.vue index 8dd8f8ddc..639a16569 100644 --- a/docs/src/DocsApp.vue +++ b/docs/src/DocsApp.vue @@ -51,11 +51,3 @@ export default { } }; - - diff --git a/docs/src/doc.config.js b/docs/src/doc.config.js index d27ad12df..6232a9cce 100644 --- a/docs/src/doc.config.js +++ b/docs/src/doc.config.js @@ -2,8 +2,12 @@ module.exports = { 'zh-CN': { header: { - Github: 'https://github.com/youzan/vant', - English: '#/en-US/' + lang: { + text: 'En', + from: 'zh-CN', + to: 'en-US' + }, + github: 'https://github.com/youzan/vant' }, footer: { github: 'https://github.com/youzan/vant', @@ -269,8 +273,12 @@ module.exports = { }, 'en-US': { header: { - Github: 'https://github.com/youzan/vant', - 中文: '#/zh-CN' + lang: { + text: '中文', + from: 'en-US', + to: 'zh-CN' + }, + github: 'https://github.com/youzan/vant' }, footer: { github: 'https://github.com/youzan/vant', diff --git a/package.json b/package.json index a7796bb41..889f03d3a 100644 --- a/package.json +++ b/package.json @@ -75,10 +75,7 @@ "friendly-errors-webpack-plugin": "^1.6.1", "gh-pages": "^1.0.0", "gulp": "^3.9.1", - "gulp-clean-css": "^3.9.0", "gulp-cssmin": "^0.2.0", - "gulp-iconfont": "^9.0.2", - "gulp-iconfont-css": "^2.1.0", "gulp-postcss": "^7.0.0", "gulp-util": "^3.0.8", "highlight.js": "^9.12.0", @@ -96,7 +93,6 @@ "karma-webpack": "^2.0.4", "markdown-it": "^8.4.0", "markdown-it-container": "^2.0.0", - "md5-file": "^3.2.3", "mocha": "^3.4.2", "postcss": "^6.0.14", "postcss-calc": "^6.0.0", @@ -122,6 +118,6 @@ "webpack-bundle-analyzer": "^2.9.0", "webpack-dev-server": "^2.9.4", "webpack-merge": "^4.1.1", - "zan-doc": "^0.3.9" + "zan-doc": "0.3.10" } } diff --git a/yarn.lock b/yarn.lock index 1603e420f..019c15c92 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8217,9 +8217,9 @@ yeast@0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419" -zan-doc@^0.3.9: - version "0.3.9" - resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.3.9.tgz#4a666408569aee6481590aba281cf40c98ce89b7" +zan-doc@0.3.10: + version "0.3.10" + resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.3.10.tgz#c3130c81cbb66e0feceb6d5a84d89b39db69659a" dependencies: cheerio "0.22.0" decamelize "^1.2.0"