typedoc-plugin-markdown
Version:
A plugin for TypeDoc that enables TypeScript API documentation to be generated in Markdown.
13 lines (12 loc) • 386 B
JavaScript
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');
}