Skip to content
Redoc

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

OptionPurposeDefault
outputWhere the HTML file is written: path.{ path: 'docs.html' }

Option details

output

Where the generated Redoc HTML file is written.

Type{ path: string }
Requiredfalse
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.

Typestring
Requiredfalse
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