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, https://redocly.com/ is being used for the generation.

Type:string
Required:false
Default:'docs.html'
typescript
import { 
pluginOas
} from '@kubb/plugin-oas'
const
plugin
=
pluginOas
({
output
: {
path
: './docs/index.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.