docs: add magic comment anchors for documentation linking (#11617)

This commit is contained in:
Kaparthy Reddy 2025-12-25 12:08:01 +05:30
parent 23972dd061
commit 1735903a56

View File

@ -68,14 +68,14 @@ export async function readVersionDocs(
): Promise<DocFile[]> {
const sources = await Globby(options.include, {
cwd: versionMetadata.contentPath,
// THE FIX: Transform simple folder names into recursive glob patterns
// // anchor-next-line fix-11607-11617
// Fix #11607: ensure folder exclusion is recursive by adding the /** glob
ignore: options.exclude.flatMap((pattern) => [pattern, `${pattern}/**`]),
});
return Promise.all(
sources.map((source) => readDocFile(versionMetadata, source)),
);
}
export type DocEnv = 'production' | 'development';
async function doProcessDocMetadata({