From 3213b66c0534585014a999c91be9b62163a8c500 Mon Sep 17 00:00:00 2001 From: Federico Cingolani Date: Mon, 5 Sep 2022 00:21:21 -0300 Subject: [PATCH 1/2] Patched path errors in Windows There was a hardcoded `"/"` used as path separator. Replaced by `path.sep`. --- src/core/parsers/parseFile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/parsers/parseFile.js b/src/core/parsers/parseFile.js index cedc6e9..1b75746 100644 --- a/src/core/parsers/parseFile.js +++ b/src/core/parsers/parseFile.js @@ -156,7 +156,7 @@ module.exports = filePath => { file = { name: null, description: null, - path: `${filePath.replace(config.projectDir + '/', '')}`, + path: `${filePath.replace(config.projectDir + path.sep, '')}`, icon: null, tool: false, extends: null, From 89da83cf6d829c654fe9f397177a4f9625e699d6 Mon Sep 17 00:00:00 2001 From: Federico Cingolani Date: Mon, 5 Sep 2022 17:40:53 -0300 Subject: [PATCH 2/2] Fix Index links. --- src/core/generateIndexFile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/generateIndexFile.js b/src/core/generateIndexFile.js index fbb5018..3bf8a88 100644 --- a/src/core/generateIndexFile.js +++ b/src/core/generateIndexFile.js @@ -7,7 +7,7 @@ module.exports = files => { for (let index = 0; index < files.length; index++) { const file = files[index] - const filePath = file.path.replace('.gd', '.md') + const filePath = file.path.replace('.gd', '.md').replace(path.sep, '/') const fileName = file.name outputString += `- [${fileName}](./${filePath})\n`