UNPKG

typedoc-plugin-sphinx

Version:

A plugin for TypeDoc that enables TypeScript API documentation to be generated in Sphinx's reStructuredText.

53 lines (36 loc) 2.31 kB
# typedoc-plugin-markdown A plugin for [TypeDoc](https://github.com/TypeStrong/typedoc) that renders TypeScript API documentation as Sphinx. [![npm](https://img.shields.io/npm/v/typedoc-plugin-markdown.svg)](https://www.npmjs.com/package/typedoc-plugin-markdown) [![Build Status](https://github.com/tgreyuk/typedoc-plugin-markdown/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/tgreyuk/typedoc-plugin-markdown/actions/workflows/ci.yml) ## What it does? The plugin replaces the default HTML theme with a built-in Sphinx theme and exposes some additional options. Useful if documentation is required to be included in project README files, Wikis and static site generators. ## Installation ```bash npm install --save-dev typedoc typedoc-plugin-markdown ``` ## Usage Usage is the same as documented at [TypeDoc](https://typedoc.org/guides/installation/#command-line-interface). ```bash typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts ``` > The plugin switches the default html theme to the in-built markdown theme as default. If using with the default html theme, use `--plugin none` to switch the plugin off. ## Options The following options can be used in addition to relevant [TypeDoc options](https://typedoc.org/guides/options/) (please note that TypeDoc options specific to the html theme will be ignored). - `--entryDocument<string>`<br> The file name of the entry document. Defaults to `README.md`. - `--hideBreadcrumbs<boolean>`<br> Do not render breadcrumbs in template header. Defaults to `false`. - `--hideInPageTOC<boolean>`<br> Do not render in-page table of contents items. Defaults to `false`. - `--hideMembersSymbol<boolean>`<br> Do not add special symbols for class members. Defaults to `false`. - `--publicPath<string>`<br> Specify the base path for all urls. If undefined urls will be relative. Defaults to `.`. - `--namedAnchors<boolean>`<br> Use HTML named anchors tags for implementations that do not assign header ids. Defaults to `false`. - `--preserveAnchorCasing<boolean>`<br> Preserve anchor id casing for implementations where original case is desirable. Defaults to `false`. ## License [MIT](https://github.com/tgreyuk/typedoc-plugin-markdown/blob/master/LICENSE)