Docs: add English language support (#170)

* feat: support lang entry build

* feat: vant support lang switch

* move lang iframe-router to utils & fix router link bug

* add en-US config && add some translation

* chang async. to async_ (support superman cdn)

* add layout translation

* change nav style

* upgrade zan-doc

* fix: doc config

* upgrade zan-doc && remove useless code

* fix changelog generate path
This commit is contained in:
Yao
2017-10-06 12:33:28 +08:00
committed by GitHub
parent 265fcbf2ef
commit 64ec6ce5ac
68 changed files with 439 additions and 135 deletions
+1 -1
View File
@@ -17,4 +17,4 @@ github_changelog_generator \
--issues-label "**处理的 Issue:**" \
--pr-label "**合并的 Pull Request (可能有不兼容改动):**" \
--no-unreleased \
-o $basepath/../docs/examples-docs/changelog-generated.md
-o $basepath/../docs/examples-docs/zh-CN/changelog-generated.md
+2 -2
View File
@@ -16,7 +16,7 @@ const styleLoaders = [
extractExample({
src: path.resolve(__dirname, '../docs/examples-docs'),
dist: path.resolve(__dirname, '../docs/examples-dist'),
nav: docConfig['zh-CN'].nav,
nav: docConfig,
watch: !isProduction
});
@@ -31,7 +31,7 @@ module.exports = {
publicPath: '/',
filename: '[name].js',
umdNamedDefine: true,
chunkFilename: 'async.[name].js'
chunkFilename: 'async_[name].js'
},
devServer: {
host: '0.0.0.0',
+1 -1
View File
@@ -9,7 +9,7 @@ module.exports = merge(devConfig, {
publicPath: 'https://b.yzcdn.cn/zanui/vue/',
filename: '[name].[hash:8].js',
umdNamedDefine: true,
chunkFilename: 'async.[name].[chunkhash:8].js'
chunkFilename: 'async_[name].[chunkhash:8].js'
},
devtool: false,
plugins: [