$ npm install typedoc-plugin-markdown
A plugin for TypeDoc that renders TypeScript API documentation as Markdown.
By default, TypeDoc will render API documentation as a webpage, e.g. HTML files.
The plugin replaces the default HTML theme with a built-in Markdown theme and exposes some additional options. This is useful if documentation is required to be included in project README files, Wikis and static site generators.
Please note this pre-release version may contain breaking changes within the same semantic version.
TypeDoc is a required peer dependency.
npm install typedoc-plugin-markdown@next --save-dev
The plugin needs to be specified using the plugin argument:
command-line
typedoc --plugin typedoc-plugin-markdown
typedoc.json
{
"plugin": ["typedoc-plugin-markdown"]
}
The following options can be used in addition to relevant TypeDoc options (please note that TypeDoc options specific to the HTML theme will be ignored).
Please see options guide for more detailed descriptions of available plugin options.
Below is a summary of the available options:
--outputFileStrategy "members" | "modules"
Determines how output files are generated. Defaults to
members. more »
--includeFileNumberPrefixes boolean
Prefixes generated files and folders with number prefixes. Defaults to
false. more »
--flattenOutputFiles boolean
Flatten output files without folders. Defaults to
false. more »
--entryFileName string
The file name of the entry page. Defaults to
README.md. more »
--indexFileName string
The file name the seperate index page. Defaults to
API.md. more »
--indexPageTitle string
The title of API index page. Defaults to
Index.
--skipIndexPage boolean
Skips generation of a seperate API index page. Defaults to
false. more »
--excludeGroups boolean
Excludes grouping by reflection kind so all members are rendered and sorted at the same level. Defaults to
false. more »
--hidePageHeader boolean
Do not print page header. Defaults to
false.
--hidePageTitle boolean
Do not print page title. Defaults to
false.
--hideBreadcrumbs boolean
Do not print breadcrumbs. Defaults to
false.
--hideInPageTOC boolean
Do not render in-page table of contents items. Defaults to
false.
--hideHierarchy boolean
Do not print reflection hierarchy. Defaults to
false.
--identifiersAsCodeBlocks boolean
Format signature and declaration identifiers in code blocks. Defaults to
false. more »
--propertiesFormat "list" | "table"
Specify the render style of properties groups for interfaces and classes. Defaults to
list.
--enumMembersFormat "list" | "table"
Specify the render style of Enum members. Defaults to
list.
--typeDeclarationFormat "list" | "table"
Specify the render style for type declaration members. Defaults to
list.
--tocFormat "list" | "table"
Render TOC either as a simple list or a table with a description. Defaults to
list.
--baseUrl string
Specifies the base url for internal link. If omitted all urls will be relative. Defaults to
undefined.
--anchorFormat "lowercase" | "slug" | "none"
The anchor format to use when linking to internal symbols. Defaults to
lowercase.
--anchorTemplate string
The anchor template to use when linking to internal symbols. Defaults to
undefined. more »
--titleTemplate string
Specify a template for displaying page titles. Defaults to
{kind}: {name}. more »
--namedAnchors boolean
Use HTML named anchors for engines that do not automatically assign header ids. Defaults to
false.
If frontmatter is required for adding further metadata please use typedoc-plugin-frontmatter.
All test files are linted with markdownlint.
Contributions and suggestions are welcome. Please see the contributing guidelines for further details.
© 2010 - cnpmjs.org x YWFE | Home | YWFE