[Doc] rename component README file (#3662)

This commit is contained in:
neverland 2019-06-27 14:22:40 +08:00 committed by GitHub
parent a56f96c246
commit ddb24e6762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
119 changed files with 4 additions and 3 deletions

View File

@ -21,7 +21,7 @@
- fix Toast missing type definition of clear method [\#3542](https://github.com/youzan/vant/pull/3542) - fix Toast missing type definition of clear method [\#3542](https://github.com/youzan/vant/pull/3542)
## [v2.0.1](https://github.com/youzan/vant/tree/v2.0.1) ### [v2.0.1](https://github.com/youzan/vant/tree/v2.0.1)
`2019-06-15` `2019-06-15`
**Improvements** **Improvements**

View File

@ -13,7 +13,7 @@ Vue.use(VueRouter).use(VantDoc);
const docs = {}; const docs = {};
const docsFromMarkdown = require.context('../markdown', false, /(en-US|zh-CN)\.md$/); const docsFromMarkdown = require.context('../markdown', false, /(en-US|zh-CN)\.md$/);
const docsFromPackages = require.context('../../src', true, /(en-US|zh-CN)\.md$/); const docsFromPackages = require.context('../../src', true, /README(\.zh-CN)?\.md$/);
importAll(docs, docsFromMarkdown); importAll(docs, docsFromMarkdown);
importAll(docs, docsFromPackages); importAll(docs, docsFromPackages);

View File

@ -44,7 +44,8 @@ const registerRoute = ({ mobile, componentMap }) => {
} }
} else { } else {
const module = const module =
componentMap[`./${path}/${lang}.md`] || componentMap[`./${path}/README.${lang}.md`] ||
componentMap[`./${path}/README.md`] ||
componentMap[`./${path}.${lang}.md`]; componentMap[`./${path}.${lang}.md`];
component = module.default; component = module.default;

Some files were not shown because too many files have changed in this diff Show More