@alauda/doom
Version:
Doctor Doom making docs.
19 lines (18 loc) • 740 B
TypeScript
import type { NavItem } from '@rspress/shared';
import type { DoomSidebar } from './walk.ts';
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 interface WalkResult {
nav: NavItem[];
sidebar: Record<string, DoomSidebar[]>;
}
export declare function combineWalkResult(walks: WalkResult[], versions: string[]): {
nav: Record<string, NavItem[]>;
sidebar: Record<string, DoomSidebar[]>;
};