We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9fd33f commit 1378773Copy full SHA for 1378773
docs/.vitepress/plugins/mirror.ts
@@ -109,7 +109,7 @@ export const buildEnd = async () => {
109
const htmlUrlMap: Record<string, string> = {};
110
for await (const filePathName of traverseDirectory(baseDir)) {
111
if (filePathName.endsWith('.html')) {
112
- const textFileName = filePathName + '.md';
+ const textFileName = filePathName.replace(/\.html$/, '_.md');
113
await fs.copyFile(filePathName, textFileName);
114
htmlUrlMap[relativePath(filePathName)] = relativePath(textFileName);
115
}
0 commit comments