Options
Please view options exposed by typedoc-plugin-markdown in addition to those listed here.
Preset Options
The following are preset typedoc-plugin-markdown options:
{
"hidePageHeader": true,
"entryFileName": "index.md",
"out": "./api"
}
Plugin Options
The following options are exposed by this plugin:
—docsRoot
Defaults to
"./"
.
If TypeDoc is run from outside of the VitePress project root directory, then docsRoot
should be set to the path of the VitePress root directory.
e.g. the following file structure:
├── package.json
├── typedoc.json
└── docs/
└── .vitepress/
└── typedoc-api/
└── index.md
Requires the following config:
{
"out": "./docs/typedoc-api",
"docsRoot": "./docs"
}
{
"docsRoot": "./"
}
—sidebar
Accepts a key/value object.
sidebar.autoConfiguration
Set to false
to disable sidebar generation. Defaults to true.
sidebar.format
Enables backward compatibility with VuePress. Available options ["vitepress"
, "vuepress1"
, "vuepress2"
]. Defaults to "vitepress"
.
sidebar.collapsed
Determines if sidebar items with children are open or closed. Set collapsed
to false
to set sidebar items as open by default.
https://vitepress.dev/reference/default-theme-sidebar#collapsible-sidebar-groups
sidebar.pretty
Pretty format the sidebar JSON.
{
"sidebar": {
"autoConfiguration": true,
"format": "vitepress",
"pretty": false,
"collapsed": true
}
}