mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(vant-cli): fix the bug of getting MD file in windows (#5626)
This commit is contained in:
parent
1039db5496
commit
d6d5581eef
@ -65,7 +65,7 @@ function resolveDocuments(components: string[]): DocumentItem[] {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const staticDocs = glob.sync(join(DOCS_DIR, '**/*.md')).map(path => {
|
const staticDocs = glob.sync(normalizePath(join(DOCS_DIR, '**/*.md'))).map(path => {
|
||||||
const pairs = parse(path).name.split('.');
|
const pairs = parse(path).name.split('.');
|
||||||
return {
|
return {
|
||||||
name: formatName(pairs[0], pairs[1] || defaultLang),
|
name: formatName(pairs[0], pairs[1] || defaultLang),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user