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

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',