mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] rename component README file (#3662)
This commit is contained in:
parent
a56f96c246
commit
ddb24e6762
@ -21,7 +21,7 @@
|
||||
- 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`
|
||||
|
||||
**Improvements**
|
||||
|
@ -13,7 +13,7 @@ Vue.use(VueRouter).use(VantDoc);
|
||||
|
||||
const docs = {};
|
||||
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, docsFromPackages);
|
||||
|
@ -44,7 +44,8 @@ const registerRoute = ({ mobile, componentMap }) => {
|
||||
}
|
||||
} else {
|
||||
const module =
|
||||
componentMap[`./${path}/${lang}.md`] ||
|
||||
componentMap[`./${path}/README.${lang}.md`] ||
|
||||
componentMap[`./${path}/README.md`] ||
|
||||
componentMap[`./${path}.${lang}.md`];
|
||||
|
||||
component = module.default;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user