UNPKG

typedoc-plugin-markdown

Version:

Generates TypeScript API documentation as Markdown.

13 lines (12 loc) 386 B
export function document(page) { const md = []; if (!this.options.getValue('hidePageHeader')) { md.push(this.partials.header()); } if (!this.options.getValue('hideBreadcrumbs')) { md.push(this.partials.breadcrumbs()); } md.push(this.helpers.getCommentParts(page.model.content)); md.push(this.partials.footer()); return md.join('\n\n'); }