Skip to content
Redoc logo

Redoc

Officialv5.2.5

@kubb/plugin-redoc

kubb add plugin-redoc

Options

pluginRedoc() takes one option, the path of the HTML file it writes. It takes none of the shared plugin options.

Options overview

OptionPurposeDefault
outputWhere the HTML file is written.{ path: 'docs.html' }
↳ output.pathFile path of the HTML page.'docs.html'

Option details

output

Where the Redoc HTML file is written. Unlike the shared output option, it takes only path.

Type{ path: string }
Requiredfalse
Default{ path: 'docs.html' }

output.path

File path of the HTML page, resolved against the root output.path. It names a file, not a folder.

Typestring
Requiredfalse
Default'docs.html'
output.pathRoot output.pathWrites
'docs.html''./src/gen'src/gen/docs.html
'api/index.html''./src/gen'src/gen/api/index.html
'docs''./src/gen'src/gen/docs, a file without an extension