UNPKG

@alauda/doom

Version:

Doctor Doom making docs.

18 lines (17 loc) 651 B
import type { NavItem } from '@rspress/shared'; import type { DoomSidebar } from './walk.js'; export declare function detectFilePath(rawPath: string, extensions: string[]): Promise<string | undefined>; export declare function extractInfoFromFrontmatter(filePath: string, rootDir: string, extensions: string[]): Promise<{ realPath: string | undefined; title: string; overviewHeaders: number[] | undefined; context: string | undefined; weight?: number; }>; export declare function combineWalkResult(walks: { nav: NavItem[]; sidebar: Record<string, DoomSidebar[]>; }[], versions: string[]): { nav: {}; sidebar: {}; };