UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

58 lines 1.32 kB
import { RootConfig } from '../type'; /** * Root entity holds the root configuration */ export declare class Root { private rootConfig; private rootParams; constructor(rootConfig: RootConfig, rootParams?: Record<string, any>); /** * Get the default theme */ defaultTheme(): string; /** * Get the compiled timeout duration */ compiledTimeout(): number; /** * Get the base URL */ baseUrl(): string; /** * Get configuration parameters */ configParams(): Record<string, any>; /** * Get site title */ siteTitle(): string; /** * Get the root configuration */ getRootConfig(): RootConfig; /** * Get theme list */ getThemes(): string[]; /** * Get default content language */ getDefaultContentLanguage(): string; /** * Check if drafts should be built */ shouldBuildDrafts(): boolean; /** * Check if future content should be built */ shouldBuildFuture(): boolean; /** * Check if expired content should be built */ shouldBuildExpired(): boolean; } /** * Create a new Root instance from provider data */ export declare function newRoot(data: any, params?: Record<string, any>): Root; //# sourceMappingURL=root.d.ts.map