UNPKG

@mdfriday/foundry

Version:

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

26 lines (25 loc) 697 B
export interface ThemeInfo { id: number; name: string; author: string; version: string; screenshot: string; download_url: string; demo_url: string; demo_notes_url: string; tags: string[]; } export interface ThemesCollection { themes: ThemeInfo[]; } export declare class Themes { private themes; constructor(themes: ThemeInfo[]); static fromJson(json: ThemeInfo[]): Themes; findThemeByUrl(targetUrl: string): ThemeInfo | null; resolveLatestVersion(importPath: string): string; private extractBaseUrl; getAllThemes(): ThemeInfo[]; getThemeByName(name: string): ThemeInfo | null; getThemesByTag(tag: string): ThemeInfo[]; }