Skip to content

@kubb/plugin-redoc

With the Redoc plugin you can create beautiful documentation.

Installation

shell
bun add @kubb/plugin-redoc
shell
pnpm add @kubb/plugin-redoc
shell
npm install @kubb/plugin-redoc
shell
yarn add @kubb/plugin-redoc

Options

output

output.path

Output for the generated doc. For the generation we are using https://redocly.com/.

Type:string
Required:false
Default:'docs.html'

Example

kubb.config.ts
typescript
import { 
defineConfig
} from '@kubb/core'
import {
pluginRedoc
} from '@kubb/plugin-redoc'
export default
defineConfig
({
input
: {
path
: './petStore.yaml',
},
output
: {
path
: './src/gen',
},
plugins
: [
pluginRedoc
({
output
: {
path
: './docs/index.html',
}, }), ], })

Released under the MIT License.