linopress-cli/typedoc
The TypeDoc source: runs TypeDoc with typedoc-plugin-markdown and reads its pages.
Interfaces
GenerateOptions
Properties
GenerateResult
Properties
| Property | Type |
|---|---|
out | string |
pages | Page[] |
Functions
generateMarkdown()
ts
function generateMarkdown(options): Promise<GenerateResult>;Runs TypeDoc with typedoc-plugin-markdown and reads the result as pages. typedoc and typedoc-plugin-markdown are peer dependencies, loaded lazily.
Parameters
| Parameter | Type |
|---|---|
options | GenerateOptions |
Returns
Promise<GenerateResult>
readMarkdownPages()
ts
function readMarkdownPages(dir): Promise<Page[]>;Reads a folder of Markdown (e.g. typedoc-plugin-markdown output) as pages. Titles come from each page's H1, falling back to the file path without .md.
Parameters
| Parameter | Type |
|---|---|
dir | string |
Returns
Promise<Page[]>
splitTitle()
ts
function splitTitle(markdown): object;Splits a leading # Title off a Markdown page. Linear shows the doc title separately, so keeping TypeDoc's H1 would duplicate it.
Parameters
| Parameter | Type |
|---|---|
markdown | string |
Returns
object
| Name | Type |
|---|---|
content | string |
title | string | null |