Redoc
Officialv5.0.7@kubb/plugin-redoc
kubb add plugin-redoc
Options
pluginRedoc() accepts a single option, the path of the HTML file it writes. It takes none of the shared plugin options.
Options overview
| Option | Purpose | Default |
|---|---|---|
output | Where the HTML file is written: path. | { path: 'docs.html' } |
Option details
output
Where the generated Redoc HTML file is written.
| Type | { path: string } |
| Required | false |
| Default | { path: 'docs.html' } |
output.path
File path of the generated HTML, resolved against the global output.path. Unlike most plugins, this points at a single file, not a directory. End the path with .html. Without .html, Kubb writes the file at that exact path, with no extension.
| Type | string |
| Required | false |
| Default | 'docs.html' |
With output.path set to 'docs.html' and the global output.path set to './src/gen', the plugin writes one file:
src/
└── gen/
└── docs.html