There are several options for defining plugin configuration:
typedoc.json
filepagesconfig.json
filetypedoc.json
fileIf you are configuring TypeDoc via the typedoc.json
configuration file, you can embed your plugin configuration directly into this file. All plugin configuration options can be specified as properties of the pages
property in your typedoc.json
file:
typedoc.json
{
"inputFiles": ["./src"],
"name": "TypeDoc Pages Plugin",
"out": "docs",
"readme": "./docs-source/introduction.md",
"theme": "pages-plugin",
"pages": {
"groups": [],
"output": "pages"
}
}
pagesconfig.json
fileIf you are not using a typedoc.json
configuration file, or if you would like to separate your plugin configuration from the TypeDoc configuration, you can define your plugin configuration in a pagesconfig.json
file in the directory where TypeDoc will be executed from:
pagesconfig.json
{
"groups": [],
"output": "pages"
}
Finally, if you would like to customize the location or name of your dedicated JSON configuration file, pass the path to TypeDoc as the pages
configuration option either via your typedoc.json
file or command line parameters:
typedoc.json
{
"inputFiles": ["./src"],
"name": "TypeDoc Pages Plugin",
"out": "docs",
"readme": "./docs-source/introduction.md",
"theme": "pages-plugin",
"pages": "./path/to/your/configuration.json"
}
$ typedoc --pages ./path/to/your/configuration.json
Generated using TypeDoc