From a2bd4fda47e736496014225c790bf3406e7bf6f4 Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Tue, 3 Feb 2026 12:48:47 +1100 Subject: [PATCH] Update eng/generate-llms-txt.mjs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- eng/generate-llms-txt.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/generate-llms-txt.mjs b/eng/generate-llms-txt.mjs index bdffdfd3..7b95fdc7 100644 --- a/eng/generate-llms-txt.mjs +++ b/eng/generate-llms-txt.mjs @@ -78,7 +78,8 @@ function extractDescription(filePath, fileType) { * @returns {string} - Relative URL path */ function getRelativeUrl(filePath, baseDir) { - const relativePath = path.relative(ROOT_FOLDER, filePath); + const basePath = baseDir || ROOT_FOLDER; + const relativePath = path.relative(basePath, filePath); return relativePath.replace(/\\/g, "/"); }