UNPKG

svelte-markdown-pages

Version:

Build and render markdown-based content with distributed navigation for Svelte projects

28 lines (25 loc) 910 B
import { BuildOptions, BuildResult, ContentProcessor, NavigationTree } from '../types.js'; import 'zod'; declare class BuilderError extends Error { filePath?: string | undefined; constructor(message: string, filePath?: string | undefined); } interface ContentBundle { [path: string]: string; } declare function buildPages(contentPath: string, options?: BuildOptions): Promise<BuildResult>; declare function processMarkdown(content: string, processor?: ContentProcessor): string; declare function generateStaticPages(navigation: NavigationTree, basePath: string, options?: { processor?: ContentProcessor; pageOptions?: { title?: string; baseUrl?: string; css?: string; js?: string; }; }): Array<{ path: string; content: string; html: string; }>; export { BuilderError, type ContentBundle, buildPages, generateStaticPages, processMarkdown };