mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
fix(vant-cli): fix the bug of getting MD file in windows (#5626)
This commit is contained in:
@@ -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),
|
||||||
|
Reference in New Issue
Block a user