UNPKG

@mdfriday/foundry

Version:

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

63 lines (62 loc) 2.03 kB
import { Content as ContentHub, Converter, LangService, Page, PageMap, TaxonomyService, Template, URLService } from '../index'; import { Taxonomy } from './taxonomy'; import { Term } from './term'; import { Section } from './section'; import { Standalone } from './standalone'; import { Source } from './pagesource'; export declare class PageBuilder { urlSvc: URLService; langSvc: LangService; taxonomySvc: TaxonomyService; templateSvc: Template | null; pageMapper: PageMap | null; taxonomy: Taxonomy; term: Term; section: Section; standalone: Standalone; converter: Converter; contentHub: ContentHub | null; private source; private sourceByte; private kind; private singular; private term_; private langIdx; private fm; private fmParser; private c; private renderableDocument; constructor(urlSvc: URLService, langSvc: LangService, taxonomySvc: TaxonomyService, templateSvc: Template | null, pageMapper: PageMap | null, taxonomy: Taxonomy, term: Term, section: Section, standalone: Standalone, converter: Converter, contentHub: ContentHub | null); withSource(source: Source): PageBuilder; withLangIdx(idx: number): PageBuilder; private reset; build(): Promise<Page>; kindBuild(): Promise<Page>; private buildInternal; private buildPage; private buildPageWithKind; private applyFrontMatter; private buildHome; private buildSection; private build404; private buildSitemap; private buildTaxonomy; private buildTerm; private render; private parse; private parseTerms; private parseKind; private parseLanguageByDefault; private parseLanguageByIdx; private parseLanguage; private parseFrontMatter; private createShortcodeRenderer; private doRenderShortcode; private renderShortcodeMarkdown; private buildPagination; private adaptPagination; private buildOutput; private newPage; private newTaxonomy; private newTerm; }