@kubb/plugin-redoc
Generate API documentation using Redoc.
Installation
shell
bun add -d @kubb/plugin-redocshell
pnpm add -D @kubb/plugin-redocshell
npm install --save-dev @kubb/plugin-redocshell
yarn add -D @kubb/plugin-redocOptions
output
output.path
The output location for the generated documentation.
This plugin uses Redocly for HTML generation.
| Type: | string |
|---|---|
| Required: | false |
| Default: | 'docs.html' |
Example
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',
},
}),
],
})