typedoc-plugin-markdown
A plugin for TypeDoc that enables TypeScript API documentation to be generated in Markdown.
Last updated 4 years ago by tgreyuk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install typedoc-plugin-markdown 
SYNC missed versions from official npm registry.

typedoc-plugin-markdown

A plugin for TypeDoc that renders TypeScript API documentation as Markdown.

npm Build Status

What does it do?

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.

Installation

Please note this pre-release version may contain breaking changes within the same semantic version.

TypeDoc and Prettier are both required peer dependencies.

npm install typedoc-plugin-markdown@next --save-dev

Usage

The plugin needs to be specified using the plugin argument:

command-line

typedoc --plugin typedoc-plugin-markdown

typedoc.json

{
  "plugin": ["typedoc-plugin-markdown"]
}

Options

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).

More detailed documentation with examples can be found in the following:

Below is a summary of the available options:

File output and content organization options

  • --outputFileStrategy
    Determines how output files are generated. Allowed values modules (all symbols hoisted to a single modules file) or members (each symbol exported to a seperate file as per HTML theme). Default to members.
  • --includeFileNumberPrefixes
    Prefixes generated files and folders with number prefixes. This is useful for implementations that support auto sidebar generation. Defaults to false.
  • --flattenOutputFiles
    Flatten output files without folders. Defaults to false.
  • --entryFileName
    The file name of the entry page (either project readme or API index if readme=none). README.md is recognised when browsing folders on repos and Wikis, while using index.md. Defaults to README.md.
  • --indexFileName
    The file name the seperate index page. Ignored if readme=none or skipIndexPage=true. Default to API.md.
  • --skipIndexPage
    Skips generation of a seperate API index page. Note the index page can be inserted into the readme page using the $TYPEDOC_INDEX placeholder key. Ignored if readme=none. Defaults to false.
  • --indexPageTitle
    The title of API index page. Defaults to the project name.
  • --excludeGroups
    By default members are grouped by kind (eg Classes, Functions etc). This option excludes such groupings so all members are rendered and sorted at the same level. Defaults to false.

UI options

  • --hidePageHeader
    Do not print the page header. Defaults to false.
  • --hideBreadcrumbs
    Do not print breadcrumbs. Defaults to false.
  • --hideInPageTOC
    Do not print in-page index items. Defaults to false.
  • --hidePageTitle
    Do not print the page title. Defaults to false.
  • --hideKindPrefix
    Do not print the kind label as a title prefix. Defaults to false.
  • --hideHierarchy
    Do not print reflection hierarchy. Defaults to false.
  • --identifiersAsCodeBlocks
    Format signature and declaration identifiers in code blocks. Note if true references will not be linked. Defaults to false.
  • --propertiesFormat
    Specify the render style of properties groups for interfaces, classes and type literals. Expected values [list, table]. Defaults to list.
  • --enumMembersFormat
    Specify the render style of Enum members. Expected values [list, table]. Defaults to list.
  • --typeDeclarationFormat
    Specify the render style for type declaration members. Expected values [list, table]. Defaults to list.
  • --tocFormat
    Render TOC with first line of member descriptions. Expected values [list, table]. Defaults to list.

Utility options

  • --baseUrl
    Specifies the base url for internal link. If omitted all urls will be relative. Defaults to .
  • --anchorFormat
    The anchor style to use when linking to internal symbols. Expected values [lowercase, slug, none]. Defaults to lowercase.
  • --anchorPattern
    The anchor pattern to use when linking to internal symbols. e.g customprefix-{{anchor}}.
  • --namedAnchors
    Use HTML named anchor tags for implementations that do not assign header ids. Defaults to false.

Adding Frontmatter

If frontmatter is required for adding further metadata please use typedoc-plugin-frontmatter.

Output formatting

Generated Markdown is now parsed with Prettier which is backed by the remark-parse package. Parsing documents with Prettier has several benefits:

  • Produces a consistent format.
  • Removes unnecessary escape characters.
  • Formats code blocks inside comment fenced blocks.

Any prettier configuration files discovered will be passed as options to the parser.

In addition all test files are linted with markdownlint.

Contributing

Contributions and suggestions are welcome. Please see the contributing guidelines for further details.

License

MIT

Current Tags

  • 4.14.1                                ...           latest (a month ago)

273 Versions

  • 4.14.1                                ...           a month ago
  • 4.14.0                                ...           2 months ago
  • 4.13.1                                ...           2 months ago
  • 4.13.0                                ...           3 months ago
  • 4.12.0                                ...           6 months ago
  • 4.11.0                                ...           8 months ago
  • 4.10.0                                ...           10 months ago
  • 4.9.0                                ...           a year ago
  • 4.8.1                                ...           a year ago
  • 4.8.0                                ...           a year ago
  • 4.7.1                                ...           a year ago
  • 4.7.0                                ...           a year ago
  • 4.6.4                                ...           a year ago
  • 4.6.3                                ...           2 years ago
  • 4.6.2                                ...           2 years ago
  • 4.6.1                                ...           2 years ago
  • 4.6.0                                ...           2 years ago
  • 4.5.2                                ...           2 years ago
  • 4.5.1                                ...           2 years ago
  • 4.5.0                                ...           2 years ago
  • 4.4.2                                ...           2 years ago
  • 4.4.1                                ...           2 years ago
  • 4.4.0                                ...           2 years ago
  • 4.3.3                                ...           2 years ago
  • 4.3.2                                ...           2 years ago
  • 4.3.1                                ...           2 years ago
  • 4.3.0                                ...           2 years ago
  • 4.2.10                                ...           2 years ago
  • 4.2.9                                ...           2 years ago
  • 4.2.8                                ...           2 years ago
  • 4.2.7                                ...           2 years ago
  • 4.2.6                                ...           2 years ago
  • 4.2.5                                ...           2 years ago
  • 4.2.4                                ...           2 years ago
  • 4.2.3                                ...           2 years ago
  • 4.2.2                                ...           2 years ago
  • 4.2.1                                ...           2 years ago
  • 4.2.0                                ...           2 years ago
  • 4.1.2                                ...           2 years ago
  • 4.1.1                                ...           2 years ago
  • 4.1.0                                ...           2 years ago
  • 4.0.3                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 4.0.0-next.60                                ...           3 years ago
  • 4.0.0-next.59                                ...           3 years ago
  • 4.0.0-next.58                                ...           3 years ago
  • 4.0.0-next.57                                ...           3 years ago
  • 4.0.0-next.56                                ...           3 years ago
  • 4.0.0-next.55                                ...           3 years ago
  • 4.0.0-next.54                                ...           3 years ago
  • 4.0.0-next.53                                ...           3 years ago
  • 4.0.0-next.52                                ...           3 years ago
  • 4.0.0-next.51                                ...           3 years ago
  • 4.0.0-next.50                                ...           3 years ago
  • 4.0.0-next.49                                ...           3 years ago
  • 4.0.0-next.48                                ...           3 years ago
  • 4.0.0-next.47                                ...           3 years ago
  • 4.0.0-next.46                                ...           3 years ago
  • 4.0.0-next.45                                ...           3 years ago
  • 4.0.0-next.44                                ...           3 years ago
  • 4.0.0-next.43                                ...           3 years ago
  • 4.0.0-next.42                                ...           3 years ago
  • 4.0.0-next.41                                ...           3 years ago
  • 4.0.0-next.40                                ...           3 years ago
  • 4.0.0-next.39                                ...           3 years ago
  • 4.0.0-next.38                                ...           3 years ago
  • 4.0.0-next.37                                ...           3 years ago
  • 4.0.0-next.36                                ...           3 years ago
  • 4.0.0-next.35                                ...           3 years ago
  • 4.0.0-next.34                                ...           3 years ago
  • 4.0.0-next.33                                ...           3 years ago
  • 4.0.0-next.32                                ...           3 years ago
  • 4.0.0-next.31                                ...           3 years ago
  • 4.0.0-next.30                                ...           3 years ago
  • 4.0.0-next.29                                ...           3 years ago
  • 4.0.0-next.28                                ...           3 years ago
  • 4.0.0-next.27                                ...           3 years ago
  • 4.0.0-next.26                                ...           3 years ago
  • 3.17.1                                ...           3 years ago
  • 3.17.0                                ...           3 years ago
  • 4.0.0-next.25                                ...           3 years ago
  • 4.0.0-next.24                                ...           3 years ago
  • 4.0.0-next.23                                ...           3 years ago
  • 4.0.0-next.22                                ...           3 years ago
  • 4.0.0-next.21                                ...           3 years ago
  • 4.0.0-next.20                                ...           3 years ago
  • 4.0.0-next.19                                ...           3 years ago
  • 3.16.0                                ...           3 years ago
  • 4.0.0-next.18                                ...           3 years ago
  • 3.15.4                                ...           3 years ago
  • 4.0.0-next.17                                ...           3 years ago
  • 4.0.0-next.16                                ...           3 years ago
  • 4.0.0-next.15                                ...           3 years ago
  • 4.0.0-next.14                                ...           3 years ago
  • 4.0.0-next.13                                ...           4 years ago
  • 4.0.0-next.12                                ...           4 years ago
  • 4.0.0-next.11                                ...           4 years ago
  • 3.15.3                                ...           4 years ago
  • 4.0.0-next.10                                ...           4 years ago
  • 4.0.0-next.9                                ...           4 years ago
  • 4.0.0-next.8                                ...           4 years ago
  • 3.15.2                                ...           4 years ago
  • 4.0.0-next.7                                ...           4 years ago
  • 4.0.0-next.6                                ...           4 years ago
  • 4.0.0-next.5                                ...           4 years ago
  • 4.0.0-next.4                                ...           4 years ago
  • 3.15.1                                ...           4 years ago
  • 3.15.0                                ...           4 years ago
  • 4.0.0-next.3                                ...           4 years ago
  • 4.0.0-next.2                                ...           4 years ago
  • 4.0.0-next.1                                ...           4 years ago
  • 4.0.0-next.0                                ...           4 years ago
  • 3.14.0                                ...           4 years ago
  • 3.13.6                                ...           4 years ago
  • 3.13.5                                ...           4 years ago
  • 3.13.4                                ...           4 years ago
  • 3.13.3                                ...           4 years ago
  • 3.13.2                                ...           4 years ago
  • 3.13.1                                ...           4 years ago
  • 3.13.0                                ...           4 years ago
  • 3.12.1                                ...           5 years ago
  • 3.12.0                                ...           5 years ago
  • 3.11.14                                ...           5 years ago
  • 3.11.13                                ...           5 years ago
  • 3.11.12                                ...           5 years ago
  • 3.11.11                                ...           5 years ago
  • 3.11.10                                ...           5 years ago
  • 3.11.9                                ...           5 years ago
  • 3.11.8                                ...           5 years ago
  • 3.11.7                                ...           5 years ago
  • 3.11.6                                ...           5 years ago
  • 3.11.5                                ...           5 years ago
  • 3.11.4                                ...           5 years ago
  • 3.11.3                                ...           5 years ago
  • 3.11.2                                ...           5 years ago
  • 3.11.1                                ...           5 years ago
  • 3.11.0                                ...           5 years ago
  • 3.10.4                                ...           5 years ago
  • 3.10.3                                ...           5 years ago
  • 3.10.2                                ...           5 years ago
  • 3.10.1                                ...           5 years ago
  • 3.10.0                                ...           5 years ago
  • 3.9.0                                ...           5 years ago
  • 3.8.2                                ...           6 years ago
  • 3.8.1                                ...           6 years ago
  • 3.8.0                                ...           6 years ago
  • 3.7.2                                ...           6 years ago
  • 3.7.1                                ...           6 years ago
  • 3.7.0                                ...           6 years ago
  • 3.6.1                                ...           6 years ago
  • 3.6.0                                ...           6 years ago
  • 3.5.0                                ...           6 years ago
  • 3.4.5                                ...           6 years ago
  • 3.4.4                                ...           6 years ago
  • 3.4.3                                ...           6 years ago
  • 3.4.2                                ...           6 years ago
  • 3.4.1                                ...           6 years ago
  • 3.4.0                                ...           6 years ago
  • 3.3.0                                ...           6 years ago
  • 3.2.1                                ...           6 years ago
  • 3.2.0                                ...           6 years ago
  • 3.1.1                                ...           6 years ago
  • 3.1.0                                ...           6 years ago
  • 3.0.11                                ...           6 years ago
  • 3.0.10                                ...           6 years ago
  • 3.0.9                                ...           6 years ago
  • 3.0.8                                ...           6 years ago
  • 3.0.7                                ...           6 years ago
  • 3.0.6                                ...           6 years ago
  • 3.0.5                                ...           6 years ago
  • 3.0.4                                ...           6 years ago
  • 3.0.3                                ...           6 years ago
  • 3.0.2                                ...           6 years ago
  • 3.0.1                                ...           6 years ago
  • 3.0.0                                ...           6 years ago
  • 2.4.2                                ...           6 years ago
  • 2.4.1                                ...           6 years ago
  • 2.4.0                                ...           6 years ago
  • 2.3.2                                ...           6 years ago
  • 2.3.1                                ...           6 years ago
  • 2.3.0                                ...           6 years ago
  • 2.2.17                                ...           7 years ago
  • 2.2.16                                ...           7 years ago
  • 2.2.15                                ...           7 years ago
  • 2.2.14                                ...           7 years ago
  • 2.2.13                                ...           7 years ago
  • 2.2.12                                ...           7 years ago
  • 2.2.11                                ...           7 years ago
  • 2.2.10                                ...           7 years ago
  • 2.2.9                                ...           7 years ago
  • 2.2.8                                ...           7 years ago
  • 2.2.7                                ...           7 years ago
  • 2.2.6                                ...           7 years ago
  • 2.2.5                                ...           7 years ago
  • 2.2.4                                ...           7 years ago
  • 2.2.3                                ...           7 years ago
  • 2.2.2                                ...           7 years ago
  • 2.2.1                                ...           7 years ago
  • 2.2.0                                ...           7 years ago
  • 2.1.12                                ...           7 years ago
  • 2.1.11                                ...           7 years ago
  • 2.1.10                                ...           7 years ago
  • 2.1.9                                ...           7 years ago
  • 2.1.8                                ...           7 years ago
  • 2.1.7                                ...           7 years ago
  • 2.1.6                                ...           7 years ago
  • 2.1.5                                ...           7 years ago
  • 2.1.4                                ...           7 years ago
  • 2.1.3                                ...           7 years ago
  • 2.1.2                                ...           7 years ago
  • 2.1.1                                ...           7 years ago
  • 2.1.0                                ...           7 years ago
  • 2.0.11                                ...           7 years ago
  • 2.0.10                                ...           7 years ago
  • 2.0.9                                ...           7 years ago
  • 2.0.8                                ...           7 years ago
  • 2.0.7                                ...           7 years ago
  • 2.0.6                                ...           7 years ago
  • 2.0.5                                ...           7 years ago
  • 2.0.4                                ...           7 years ago
  • 2.0.3                                ...           7 years ago
  • 2.0.2                                ...           7 years ago
  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.2.1                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.27                                ...           8 years ago
  • 1.1.26                                ...           8 years ago
  • 1.1.25                                ...           8 years ago
  • 1.1.24                                ...           8 years ago
  • 1.1.23                                ...           8 years ago
  • 1.1.22                                ...           8 years ago
  • 1.1.21                                ...           8 years ago
  • 1.1.20                                ...           8 years ago
  • 1.1.19                                ...           8 years ago
  • 1.1.18                                ...           8 years ago
  • 1.1.17                                ...           8 years ago
  • 1.1.16                                ...           8 years ago
  • 1.1.15                                ...           8 years ago
  • 1.1.14                                ...           8 years ago
  • 1.1.13                                ...           8 years ago
  • 1.1.12                                ...           9 years ago
  • 1.1.11                                ...           9 years ago
  • 1.1.10                                ...           9 years ago
  • 1.1.9                                ...           9 years ago
  • 1.1.8                                ...           9 years ago
  • 1.1.7                                ...           9 years ago
  • 1.1.6                                ...           9 years ago
  • 1.1.5                                ...           9 years ago
  • 1.1.4                                ...           9 years ago
  • 1.1.3                                ...           9 years ago
  • 1.1.2                                ...           9 years ago
  • 1.1.1                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.15                                ...           9 years ago
  • 1.0.14                                ...           9 years ago
  • 1.0.13                                ...           9 years ago
  • 1.0.12                                ...           9 years ago
  • 1.0.11                                ...           9 years ago
  • 1.0.10                                ...           9 years ago
  • 1.0.9                                ...           9 years ago
  • 1.0.8                                ...           9 years ago
  • 1.0.7                                ...           9 years ago
  • 1.0.6                                ...           9 years ago
  • 1.0.5                                ...           9 years ago
  • 1.0.4                                ...           9 years ago
  • 1.0.3                                ...           9 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 0.0.12                                ...           9 years ago
Maintainers (1)
Downloads
Total 1,125
Today 4
This Week 21
This Month 372
Last Day 4
Last Week 24
Last Month 608
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE