Browse Source

docs: add changelog docs

pull/9/merge
tjz 7 years ago
parent
commit
f186fe47b4
  1. 1
      scripts/gulpfile.js
  2. 1
      site/components/layout.vue
  3. 8
      site/routes.js

1
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) {

1
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 = []

8
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/' },
],
},

Loading…
Cancel
Save