- Downloads
- 41.7K/ mo
- Stars
- 8
- Bundle size
- 28.4 kB
- Updated
- 2h 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-redocOr run kubb add plugin-redoc to install the version the Kubb registry pins and add pluginRedoc() to kubb.config.ts.
Dependencies
- 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' } }),
],
})