- Downloads
- 42.6K/ mo
- Stars
- —
- Bundle size
- 27.0 kB
- Updated
- 5d ago
Generate a single HTML documentation page with Redoc.
- Embed the spec and publish to a static host without building.
- Network access is required for CDN scripts and fonts.
Installation
bun add -d @kubb/plugin-redocpnpm add -D @kubb/plugin-redocnpm install --save-dev @kubb/plugin-redocyarn add -D @kubb/plugin-redocDependencies
- No plugin dependencies or Redoc runtime package.
- Uses Kubb's default OpenAPI adapter.
Example
kubb.config.ts
import { defineConfig } from 'kubb/config'
import { pluginRedoc } from '@kubb/plugin-redoc'
export default defineConfig({
input: './petStore.yaml',
output: { path: './src/gen' },
plugins: [
pluginRedoc({ output: { path: 'docs.html' } }),
],
})