Skip to content

linopress-cli/typedoc ​

The TypeDoc source: runs TypeDoc with typedoc-plugin-markdown and reads its pages.

Interfaces ​

GenerateOptions ​

Properties ​

PropertyTypeDescription
optionsstringPath to a TypeDoc options file (typedoc.json).
out?stringWhere to write Markdown. Defaults to a fresh temp dir, so the config's out is untouched.
overrides?Record<string, unknown>Extra TypeDoc options, applied over the options file.
overridesBase?stringFolder that relative paths in overrides (entryPoints, tsconfig, readme, ...) resolve against, as paths in an options file resolve against that file. Defaults to the working directory.

GenerateResult ​

Properties ​

PropertyType
outstring
pagesPage[]

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 ​

ParameterType
optionsGenerateOptions

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 ​

ParameterType
dirstring

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 ​

ParameterType
markdownstring

Returns ​

object

NameType
contentstring
titlestring | null

MIT licensed. Not made by or affiliated with Linear.