![npm](https://img.shields.io/npm/v/redocusaurus?style=flat-square)
Redoc for Docusaurus v2.
Usage
-
Install redocusaurus:
npm i --save redocusaurus
-
Add it as a preset to your docusaurus config and pass options:
-
Pass it a OpenAPI spec URL
module.exports = {
presets: [
[
'redocusaurus',
{
specs: [
{
spec: 'https://redocly.github.io/redoc/openapi.yaml',
},
],
},
],
],
};
-
Pass it a OpenAPI spec local path
module.exports = {
presets: [
[
'redocusaurus',
{
specs: [
{
spec: 'openapi.yaml',
},
],
},
],
],
};
The API Doc will be available by default at /api/
path. To customize it see full plugin options.
Options
specs
Pass it an array of plugin options, see docusaurus-plugin-redoc for individual option details.
theme
Pass options to customize the theme, see docusaurus-theme-redoc for individual option details.
Docs
See: https://redocusaurus.vercel.app/docs