fix docs-list-mdx-pages (#95230)

This commit is contained in:
NIO 2026-07-01 16:51:50 +08:00 committed by GitHub
parent f55abc0606
commit 0ba41effeb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,7 +65,7 @@ function walkMarkdownFiles(dir, base = dir) {
continue; continue;
} }
files.push(...walkMarkdownFiles(fullPath, base)); files.push(...walkMarkdownFiles(fullPath, base));
} else if (entry.isFile() && entry.name.endsWith(".md")) { } else if (entry.isFile() && /\.(md|mdx)$/i.test(entry.name)) {
files.push(relative(base, fullPath)); files.push(relative(base, fullPath));
} }
} }