All the documentation you see has been generated automatically from the in-code comments using typedoc and some plugins:
To generate the documentation, simply run
npm run docs
A new folder, docs will be created. Inside you will find the generated documentation.
To visualize the result in the browser, you can use the command
npm run serve:docs
The configuration used to generate the documentation can be found in the typedoc.json file at the root of the project.
ℹ️ If you are interested in learning more about all the possible settings, you can run
npx typedoc --help
. All the options listed can be added to the config file. Also, check the documentation
The part that may be more interesting is the pages section. All the pages are markdown files located in the pages folder.
{
"pluginPages": {
"pages": [
{
"title": "Getting Started",
"source": "Getting-Started.md"
},
{
"title": "Examples",
"source": "Examples.md"
},
{
"title": "Documentation",
"source": "Documentation.md"
},
{
"title": "FAQ",
"source": "FAQ.md"
},
{
"title": "License and Copyright",
"source": "License-and-Copyright.md"
}
]
}
}
It is possible to create nested pages with the following syntax:
{
"pluginPages": {
"pages": [
{
"name": "Configuration",
"childrenDir": "configuration",
"children": [
{ "name": "Configuration file", "source": "file.md" },
{ "name": "CLI options", "source": "cli.md" }
]
}
]
}
}
Generated using TypeDoc