Update eng/generate-llms-txt.mjs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Aaron Powell
2026-02-03 12:48:47 +11:00
committed by GitHub
parent 7e23ac9527
commit a2bd4fda47

View File

@@ -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, "/");
}