Compodoc
is used to generate the documentation.
The documentation itself is written in Markdown, like this file.
On top of that, markedpp
is used as a preprocessor for the markdown files.
This allows it to automatically generate table of contents, etc...
The processing runs automatically during commit.
The compodoc
based documentation can be built with the following command:
npm run docs:build
It is also possible to serve the documentation in watch mode, for a more comfortable documentation development process:
npm run docs:develop
To generate Headlines and Table of Contents use this command:
npm run docs:generate-toc
Add this to a file, to automatically generate headline numbers and a table of contents.
<div class="table-of-contents">
<!-- !numberedheadings (minlevel=2) -->
<!-- !toc (level=4 minlevel=2) -->
<!-- toc! -->
</div>
This can be used to include files:
<!-- include (../../path/to/a/file.ts lang=typescript) -->
Our version of compodoc supports a special JSDoc comment @cliUsage
for interface
properties. This comment will appear as a special table row CLI Usage in the generated documentation for this interface property:
Code example:
interface SomeInterface {
/**
* ...
* @cliUsage --name="My generated Journey"
* ...
*/
name: string;
}