mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-25 17:22:50 +00:00
docs: add magic comment anchors for documentation linking (#11617)
This commit is contained in:
parent
23972dd061
commit
1735903a56
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue