From 92851d9adb9020dcbc625682819d6bdcb4905cfa Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Mon, 28 Oct 2024 11:01:12 +0000 Subject: [PATCH] Revert "chore: reinstate incorrectly removed code block (#45)" This reverts commit a38e179e809698ed00bb5715db18edbf46b36675. --- docs-hub/vp-docs.js | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/docs-hub/vp-docs.js b/docs-hub/vp-docs.js index aa27c40..bd83b2e 100644 --- a/docs-hub/vp-docs.js +++ b/docs-hub/vp-docs.js @@ -10,7 +10,7 @@ const configPath = path.join(srcFolderPath, "../.vitepress/config.ts"); const configFile = fs.readFileSync(configPath, "utf8"); -const subFolderExceptions = ["guide", "api"]; +const subFolderExceptions = ["guide"]; function main() { checkForIndexFile(srcFolderPath); @@ -91,27 +91,6 @@ function checkForUnusedFiles(srcFolderPath, subfolders) { const folderPath = path.join(srcFolderPath, folder); const subfolderNames = fs.readdirSync(folderPath); const parentFolder = folderPath.split("/").pop(); - subfolderNames.forEach((subFile) => { - const actualPath = `${parentFolder}/${ - subFile === "index.md" ? "" : subFile - }`; - assert( - configFile.includes(actualPath), - `${actualPath} missing in the nav config` - ); - const fullPath = path.join(srcFolderPath, actualPath); - if (fs.statSync(fullPath).isDirectory()) { - const subFolderFiles = fs.readdirSync(fullPath); - subFolderFiles.forEach((file) => { - if (file !== "index.md") { - assert( - configFile.includes(file.replace(".md", "")), - `${file} missing in the nav config` - ); - } - }); - } - }); }); }