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

@@ -3,16 +3,12 @@ import VueRouter from 'vue-router';
import App from './ExamplesDocsApp';
import routes from './router.config';
import ZanDoc from 'zan-doc';
import isMobile from './is-mobile';
import isMobile from './utils/is-mobile';
Vue.use(VueRouter);
Vue.use(ZanDoc);
const routesConfig = routes();
routesConfig.push({
path: '/',
redirect: '/component/quickstart'
});
const router = new VueRouter({
mode: 'hash',
@@ -30,7 +26,7 @@ router.beforeEach((route, redirect, next) => {
router.afterEach(() => {
window.scrollTo(0, 0);
window.syncPath();
Vue.nextTick(() => window.syncPath());
});
window.vueRouter = router;