UNPKG

markpage

Version:

Build and manage markdown-based content with distributed navigation - framework agnostic content management system

14 lines (13 loc) 598 B
import { NavigationItem, DocItem } from '../types.js'; export declare class ParserError extends Error { filePath?: string | undefined; constructor(message: string, filePath?: string | undefined); } export interface ParseOptions { basePath?: string; validateFiles?: boolean; autoDiscover?: boolean; } export declare function parseIndexFile(filePath: string): DocItem[]; export declare function buildNavigationTree(contentPath: string, options?: ParseOptions): NavigationItem[]; export declare function validateContentStructure(contentPath: string, options?: ParseOptions): void;