diff --git a/examples/docs/alert.md b/examples/docs/zh-cn/alert.md similarity index 100% rename from examples/docs/alert.md rename to examples/docs/zh-cn/alert.md diff --git a/examples/docs/badge.md b/examples/docs/zh-cn/badge.md similarity index 100% rename from examples/docs/badge.md rename to examples/docs/zh-cn/badge.md diff --git a/examples/docs/breadcrumb.md b/examples/docs/zh-cn/breadcrumb.md similarity index 100% rename from examples/docs/breadcrumb.md rename to examples/docs/zh-cn/breadcrumb.md diff --git a/examples/docs/button.md b/examples/docs/zh-cn/button.md similarity index 100% rename from examples/docs/button.md rename to examples/docs/zh-cn/button.md diff --git a/examples/docs/card.md b/examples/docs/zh-cn/card.md similarity index 100% rename from examples/docs/card.md rename to examples/docs/zh-cn/card.md diff --git a/examples/docs/checkbox.md b/examples/docs/zh-cn/checkbox.md similarity index 100% rename from examples/docs/checkbox.md rename to examples/docs/zh-cn/checkbox.md diff --git a/examples/docs/color.md b/examples/docs/zh-cn/color.md similarity index 100% rename from examples/docs/color.md rename to examples/docs/zh-cn/color.md diff --git a/examples/docs/date-picker.md b/examples/docs/zh-cn/date-picker.md similarity index 100% rename from examples/docs/date-picker.md rename to examples/docs/zh-cn/date-picker.md diff --git a/examples/docs/datetime-picker.md b/examples/docs/zh-cn/datetime-picker.md similarity index 100% rename from examples/docs/datetime-picker.md rename to examples/docs/zh-cn/datetime-picker.md diff --git a/examples/docs/development.md b/examples/docs/zh-cn/development.md similarity index 100% rename from examples/docs/development.md rename to examples/docs/zh-cn/development.md diff --git a/examples/docs/dialog.md b/examples/docs/zh-cn/dialog.md similarity index 100% rename from examples/docs/dialog.md rename to examples/docs/zh-cn/dialog.md diff --git a/examples/docs/dropdown.md b/examples/docs/zh-cn/dropdown.md similarity index 100% rename from examples/docs/dropdown.md rename to examples/docs/zh-cn/dropdown.md diff --git a/examples/docs/form.md b/examples/docs/zh-cn/form.md similarity index 100% rename from examples/docs/form.md rename to examples/docs/zh-cn/form.md diff --git a/examples/docs/home.md b/examples/docs/zh-cn/home.md similarity index 100% rename from examples/docs/home.md rename to examples/docs/zh-cn/home.md diff --git a/examples/docs/icon.md b/examples/docs/zh-cn/icon.md similarity index 100% rename from examples/docs/icon.md rename to examples/docs/zh-cn/icon.md diff --git a/examples/docs/input-number.md b/examples/docs/zh-cn/input-number.md similarity index 100% rename from examples/docs/input-number.md rename to examples/docs/zh-cn/input-number.md diff --git a/examples/docs/input.md b/examples/docs/zh-cn/input.md similarity index 100% rename from examples/docs/input.md rename to examples/docs/zh-cn/input.md diff --git a/examples/docs/layout.md b/examples/docs/zh-cn/layout.md similarity index 100% rename from examples/docs/layout.md rename to examples/docs/zh-cn/layout.md diff --git a/examples/docs/loading.md b/examples/docs/zh-cn/loading.md similarity index 100% rename from examples/docs/loading.md rename to examples/docs/zh-cn/loading.md diff --git a/examples/docs/menu.md b/examples/docs/zh-cn/menu.md similarity index 100% rename from examples/docs/menu.md rename to examples/docs/zh-cn/menu.md diff --git a/examples/docs/message-box.md b/examples/docs/zh-cn/message-box.md similarity index 100% rename from examples/docs/message-box.md rename to examples/docs/zh-cn/message-box.md diff --git a/examples/docs/message.md b/examples/docs/zh-cn/message.md similarity index 100% rename from examples/docs/message.md rename to examples/docs/zh-cn/message.md diff --git a/examples/docs/notification.md b/examples/docs/zh-cn/notification.md similarity index 100% rename from examples/docs/notification.md rename to examples/docs/zh-cn/notification.md diff --git a/examples/docs/pagination.md b/examples/docs/zh-cn/pagination.md similarity index 100% rename from examples/docs/pagination.md rename to examples/docs/zh-cn/pagination.md diff --git a/examples/docs/popover.md b/examples/docs/zh-cn/popover.md similarity index 100% rename from examples/docs/popover.md rename to examples/docs/zh-cn/popover.md diff --git a/examples/docs/progress.md b/examples/docs/zh-cn/progress.md similarity index 100% rename from examples/docs/progress.md rename to examples/docs/zh-cn/progress.md diff --git a/examples/docs/quickstart.md b/examples/docs/zh-cn/quickstart.md similarity index 100% rename from examples/docs/quickstart.md rename to examples/docs/zh-cn/quickstart.md diff --git a/examples/docs/radio.md b/examples/docs/zh-cn/radio.md similarity index 100% rename from examples/docs/radio.md rename to examples/docs/zh-cn/radio.md diff --git a/examples/docs/rate.md b/examples/docs/zh-cn/rate.md similarity index 100% rename from examples/docs/rate.md rename to examples/docs/zh-cn/rate.md diff --git a/examples/docs/select.md b/examples/docs/zh-cn/select.md similarity index 100% rename from examples/docs/select.md rename to examples/docs/zh-cn/select.md diff --git a/examples/docs/slider.md b/examples/docs/zh-cn/slider.md similarity index 100% rename from examples/docs/slider.md rename to examples/docs/zh-cn/slider.md diff --git a/examples/docs/steps.md b/examples/docs/zh-cn/steps.md similarity index 100% rename from examples/docs/steps.md rename to examples/docs/zh-cn/steps.md diff --git a/examples/docs/switch.md b/examples/docs/zh-cn/switch.md similarity index 100% rename from examples/docs/switch.md rename to examples/docs/zh-cn/switch.md diff --git a/examples/docs/table.md b/examples/docs/zh-cn/table.md similarity index 100% rename from examples/docs/table.md rename to examples/docs/zh-cn/table.md diff --git a/examples/docs/tabs.md b/examples/docs/zh-cn/tabs.md similarity index 100% rename from examples/docs/tabs.md rename to examples/docs/zh-cn/tabs.md diff --git a/examples/docs/tag.md b/examples/docs/zh-cn/tag.md similarity index 100% rename from examples/docs/tag.md rename to examples/docs/zh-cn/tag.md diff --git a/examples/docs/time-picker.md b/examples/docs/zh-cn/time-picker.md similarity index 100% rename from examples/docs/time-picker.md rename to examples/docs/zh-cn/time-picker.md diff --git a/examples/docs/tooltip.md b/examples/docs/zh-cn/tooltip.md similarity index 100% rename from examples/docs/tooltip.md rename to examples/docs/zh-cn/tooltip.md diff --git a/examples/docs/tree.md b/examples/docs/zh-cn/tree.md similarity index 100% rename from examples/docs/tree.md rename to examples/docs/zh-cn/tree.md diff --git a/examples/docs/typography.md b/examples/docs/zh-cn/typography.md similarity index 100% rename from examples/docs/typography.md rename to examples/docs/zh-cn/typography.md diff --git a/examples/docs/upload.md b/examples/docs/zh-cn/upload.md similarity index 100% rename from examples/docs/upload.md rename to examples/docs/zh-cn/upload.md diff --git a/examples/route.config.js b/examples/route.config.js index f97cc658b..a0ba8ee7e 100644 --- a/examples/route.config.js +++ b/examples/route.config.js @@ -8,7 +8,7 @@ const registerRoute = (config) => { children: [] }]; 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 = { path: page.path.slice(1), meta: { @@ -74,7 +74,7 @@ route.route = route.route.concat([indexRoute, guideRoute, resourceRoute]); route.route.push({ path: '*', - component: require('./docs/home.md') + component: require('./docs/zh-cn/home.md') }); export const navs = route.navs;