markpage
Version:
Build and manage markdown-based content with distributed navigation - framework agnostic content management system
24 lines (23 loc) • 836 B
TypeScript
import { BuildOptions, BuildResult, NavigationItem, ContentProcessor } from '../types.js';
export declare class BuilderError extends Error {
filePath?: string | undefined;
constructor(message: string, filePath?: string | undefined);
}
export interface ContentBundle {
[path: string]: string;
}
export declare function buildPages(contentPath: string, options?: BuildOptions): Promise<BuildResult>;
export declare function processMarkdown(content: string, processor?: ContentProcessor): string;
export declare function generateStaticPages(navigation: NavigationItem[], basePath: string, options?: {
processor?: ContentProcessor;
pageOptions?: {
title?: string;
baseUrl?: string;
css?: string;
js?: string;
};
}): Array<{
path: string;
content: string;
html: string;
}>;