docs: support detecting broken link cross-projects (#10483)

* docs: support detecting broken link cross-projects

* remove double separators
This commit is contained in:
Shahed Nasser
2024-12-06 19:54:46 +02:00
committed by GitHub
parent a76b533604
commit e7e36f39fb
28 changed files with 492 additions and 166 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ const monoRepoPath = path.resolve("..", "..", "..")
/**
*
* @param {string} dir - The directory to search in
* @returns {Promise<{ origSlug: string; newSlug: string }[]>}
* @returns {Promise<import("types").SlugChange[]>}
*/
export default async function getSlugs(options = {}) {
let { dir, basePath = path.resolve("app"), baseSlug = basePath } = options
@@ -15,7 +15,7 @@ export default async function getSlugs(options = {}) {
dir = basePath
}
/**
* @type {{ origSlug: string; newSlug: string }[]}
* @type {import("types").SlugChange[]}
*/
const slugs = []