mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 18:22:58 +02:00
TOOLS: Ignore .DS_Store files when generating pages.ts (#2685)
This commit is contained in:
@@ -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, "/"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user