@mintlify/link-rot
Version:
Static checking for broken internal links
16 lines (15 loc) • 780 B
TypeScript
import type { TableOfContentsSectionType } from '@mintlify/common';
import type { Root } from 'mdast';
import { Graph, Node } from '../graph.js';
export declare const flattenTableOfContentsSlugs: (sections: TableOfContentsSectionType[]) => Set<string>;
export declare const extractComponentAnchorIds: (tree: Root) => Set<string>;
export declare const decorateGraphNodeFromPageContent: (graphNode: Node, content: string, options?: {
checkSnippets?: boolean;
}) => Promise<void>;
export declare const buildGraph: (repoPath?: string, options?: {
checkSnippets?: boolean;
}) => Promise<Graph>;
export declare const getBrokenInternalLinks: (repoPath?: string, options?: {
checkAnchors?: boolean;
checkSnippets?: boolean;
}) => Promise<import("../graph.js").MdxPath[]>;