UNPKG

@mintlify/link-rot

Version:

Static checking for broken internal links

14 lines (13 loc) 679 B
/** * Extract virtual page paths that would be generated from OpenAPI specs. * These pages don't exist as files but are valid link targets. * * For docs.json (v2) configs, this walks the navigation tree so that per-spec * `directory` overrides and inherited directories are honored — matching the * slugs production generates. For mint.json (v1) or missing configs, it falls * back to generating page paths under the default `api-reference` directory. * * `$ref` pointers inside the config are resolved first, so navigation split * across multiple JSON files is walked end-to-end. */ export declare const getOpenApiPagePaths: (baseDir: string) => Promise<string[]>;