@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
30 lines • 1.02 kB
TypeScript
import { FsService, TaxonomyView as ITaxonomy } from '../type';
import { PageTreesNode } from './pagetrees';
import { PageBuilder } from './pagebuilder';
import { NodeShiftTree } from '../../../../pkg/doctree';
export declare class Taxonomy {
views: ITaxonomy[];
fsSvc: FsService;
constructor(views: ITaxonomy[], fsSvc: FsService);
/**
* Assemble - exact replica of Go's Assemble method
*/
assemble(pages: NodeShiftTree<PageTreesNode>, pb: PageBuilder): Promise<void>;
/**
* IsTaxonomyPath - exact replica of Go's IsTaxonomyPath method
*/
isTaxonomyPath(p: string): boolean;
/**
* PluralTreeKey - exact replica of Go's PluralTreeKey method
*/
pluralTreeKey(plural: string): string;
/**
* GetTaxonomy - exact replica of Go's getTaxonomy method
*/
getTaxonomy(s: string): ITaxonomy | null;
/**
* IsZero - exact replica of Go's IsZero method
*/
isZero(v: ITaxonomy | null): boolean;
}
//# sourceMappingURL=taxonomy.d.ts.map