@bigcommerce/typedoc-plugin-markdown

1.3.0 • Public • Published

@bigcommerce/typedoc-plugin-markdown

A plugin for TypeDoc that exposes a theme and additional arguments for rendering markdown. This is a forked version of typedoc-plugin-markdown that is modified to suit the needs of BigCommerce.

Installation

npm install --save-dev typedoc @bigcommerce/typedoc-plugin-markdown

Usage

Specify the theme

The plugin provides an additional markdown theme:

shell:

$ node_modules/.bin/typedoc --theme markdown

npm script:

"scripts": {
 "docs": "typedoc --theme markdown"
}

Additional arguments

The plugin exposes the following additional arguments:

  • --mdEngine <github|bitbucket|gitbook>
    The markdown rendering engine:
    "github": Optimised for GitHub/CommonMark (Default).
    "bitbucket": Renders markdown to support Bitbucket anchor linking and more.
    "gitbook": Adds SUMMARY.md file to generate a book's table of contents and sets header levels to display correct sub-navigation menu. (Optimised for newest version of GitBook).

  • --mdHideSources
    Suppress source file linking from output.

  • --mdSourceRepo <path.to.repo>(Will be ignored on GitHub repositories)
    The source repo to use for source file linking.
    For bitbucket use: https://bitbucket.org/owner/repository_name.

Example output

Acknowledgements

Package Sidebar

Install

npm i @bigcommerce/typedoc-plugin-markdown

Weekly Downloads

3

Version

1.3.0

License

MIT

Unpacked Size

41.1 kB

Total Files

54

Last publish

Collaborators

  • erik.christensen
  • leebigcommerce
  • toma-r
  • cilo
  • jorgemoya
  • bcnpmuser
  • icatalina
  • chris.boulton
  • bcandreik
  • davidchin
  • pascal.zajac
  • deini
  • chanceaclark
  • jairobc
  • jmwiese