mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-20 02:15:12 +00:00
Update eng/generate-llms-txt.mjs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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, "/");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user