From f186fe47b4b3985b06b7a7cafe56d73ddc8fd30f Mon Sep 17 00:00:00 2001 From: tjz <415800467@qq.com> Date: Sat, 21 Apr 2018 18:50:10 +0800 Subject: [PATCH] docs: add changelog docs --- scripts/gulpfile.js | 1 + site/components/layout.vue | 1 + site/routes.js | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/scripts/gulpfile.js b/scripts/gulpfile.js index 7df1ceb6b..593072e17 100644 --- a/scripts/gulpfile.js +++ b/scripts/gulpfile.js @@ -71,6 +71,7 @@ function copyHtml () { }) const source = [ 'docs/vue/*.md', + '*.md', // '!components/vc-slider/**/*', // exclude vc-slider ] gulp.src(source).pipe(through2.obj(function z (file, encoding, next) { diff --git a/site/components/layout.vue b/site/components/layout.vue index e49e118db..edae777eb 100644 --- a/site/components/layout.vue +++ b/site/components/layout.vue @@ -87,6 +87,7 @@ export default { { key: 'getting-started', enTitle: 'Getting Started', title: '快速上手' }, { key: 'use-with-vue-cli', enTitle: 'Use in vue-cli', title: '在 vue-cli 中使用' }, { key: 'customize-theme', enTitle: 'Customize Theme', title: '定制主题' }, + { key: 'changelog', enTitle: 'Change Log', title: '更新日志' }, { key: 'i18n', enTitle: 'Internationalization', title: '国际化' }, ] const docsMenu = [] diff --git a/site/routes.js b/site/routes.js index 95c68d718..01ce5bd01 100644 --- a/site/routes.js +++ b/site/routes.js @@ -59,6 +59,14 @@ export default [ path: 'docs/vue/use-with-vue-cli-cn', component: () => import('../docs/vue/use-with-vue-cli.zh-CN.md'), }, + { + path: 'docs/vue/changelog', + component: () => import('../CHANGELOG.en-US.md'), + }, + { + path: 'docs/vue/changelog-cn', + component: () => import('../CHANGELOG.zh-CN.md'), + }, { path: '', redirect: '/ant-design/vue/docs/introduce/' }, ], },