Skip to content

Commit 1378773

Browse files
committed
perf: textFileName
1 parent d9fd33f commit 1378773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/.vitepress/plugins/mirror.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const buildEnd = async () => {
109109
const htmlUrlMap: Record<string, string> = {};
110110
for await (const filePathName of traverseDirectory(baseDir)) {
111111
if (filePathName.endsWith('.html')) {
112-
const textFileName = filePathName + '.md';
112+
const textFileName = filePathName.replace(/\.html$/, '_.md');
113113
await fs.copyFile(filePathName, textFileName);
114114
htmlUrlMap[relativePath(filePathName)] = relativePath(textFileName);
115115
}

0 commit comments

Comments
 (0)