2026-02-26 00:17:23 +08:00
|
|
|
export interface ServeOptions {
|
|
|
|
|
port: string;
|
2026-03-21 00:29:36 +08:00
|
|
|
host?: string;
|
2026-02-26 00:17:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface CompileOptions {
|
|
|
|
|
output: string;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-06 14:19:16 +08:00
|
|
|
export type ServeCommandHandler = (
|
|
|
|
|
dir: string,
|
|
|
|
|
options: ServeOptions,
|
|
|
|
|
) => Promise<void>;
|
|
|
|
|
export type CompileCommandHandler = (
|
|
|
|
|
dir: string,
|
|
|
|
|
options: CompileOptions,
|
|
|
|
|
) => Promise<void>;
|
2026-02-26 00:17:23 +08:00
|
|
|
|
|
|
|
|
export interface MarkdownFile {
|
|
|
|
|
path: string;
|
|
|
|
|
route: string;
|
|
|
|
|
content: string;
|
|
|
|
|
}
|