TOOLS: Ignore .DS_Store files when generating pages.ts (#2685)

This commit is contained in:
catloversg
2026-04-24 05:49:39 +07:00
committed by GitHub
parent 355f650367
commit 112d317fd2
+3
View File
@@ -14,6 +14,9 @@ const markdownRoot = resolve(__dirname, "../../markdown");
const docImagesRoot = resolve(__dirname, "../../src/Documentation/images");
function addFileToListOfDocPages(files, root, filePath) {
if (filePath.endsWith(".DS_Store")) {
return;
}
// Windows path uses "\", so we need to replace it with "/".
files.push(relative(root, filePath).replace(/\\/g, "/"));
}