mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-23 11:55: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
|
* @returns {string} - Relative URL path
|
||||||
*/
|
*/
|
||||||
function getRelativeUrl(filePath, baseDir) {
|
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, "/");
|
return relativePath.replace(/\\/g, "/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user