Commit 172408a4 authored by cinwell.li's avatar cinwell.li Committed by GitHub

Merge pull request #182 from Leopoldthecoder/master

add english directory
parents 6a79165a 4f8e6a5d
...@@ -8,7 +8,7 @@ const registerRoute = (config) => { ...@@ -8,7 +8,7 @@ const registerRoute = (config) => {
children: [] children: []
}]; }];
function addRoute(page) { function addRoute(page) {
const component = page.path === '/changelog' ? require('./pages/changelog.vue') : require(`./docs${page.path}.md`); const component = page.path === '/changelog' ? require('./pages/changelog.vue') : require(`./docs/zh-cn${page.path}.md`);
let child = { let child = {
path: page.path.slice(1), path: page.path.slice(1),
meta: { meta: {
...@@ -74,7 +74,7 @@ route.route = route.route.concat([indexRoute, guideRoute, resourceRoute]); ...@@ -74,7 +74,7 @@ route.route = route.route.concat([indexRoute, guideRoute, resourceRoute]);
route.route.push({ route.route.push({
path: '*', path: '*',
component: require('./docs/home.md') component: require('./docs/zh-cn/home.md')
}); });
export const navs = route.navs; export const navs = route.navs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment