A plugin for TypeDoc that generates graphs for mermaid.js diagrams by @mermaid annotation.
The plugin can then be installed using npm:
# npm
npm install --save-dev typedoc-plugin-mermaid
# or yarn
yarn add -D typedoc-plugin-mermaid
Write tsdoc with @mermaid
annotations:
/**
* Hoge is sample class for example of `typedoc-plugin-mermaid`.
*
* @mermaid Make TypeDoc easy to use with mermaid.js
* graph TB
* mermaid.js --> TypeDoc;
*/
export class Hoge { }
Or use fenced code blocks:
/**
* Mermaid code blocks are automatically detect and converted.
*
* ```mermaid
* graph TB
* mermaid.js --> TypeDoc;
* ```
*/
export class Mermaid { }
Thanks goes to these wonderful people (emoji key):
Yuki Yamazaki 🤔 💻 |
Bob Kerns 🐛 |
Emily Marigold Klassen 💻 |
Mathieu Jalbert-Claveau 🐛 |
Michael Schmidt 💻 |
Carl Fürstenberg 🐛 🚇 |
This project follows the all-contributors specification. Contributions of any kind welcome!
This software is released under the MIT License, see LICENSE.