Skip to content

redocusaurus 0.7.0-v4

Install from the command line:
Learn more about npm packages
$ npm install @ahana-inc/redocusaurus@0.7.0-v4
Install via package.json:
"@ahana-inc/redocusaurus": "0.7.0-v4"

About this version

npm

Redoc for Docusaurus v2.

Usage

  1. Install redocusaurus:

    npm i --save redocusaurus
  2. Add it as a preset to your docusaurus config and pass options:

    • Pass it a OpenAPI spec URL

      // docusaurus.config.js
      
      module.exports = {
        // ...
        presets: [
          [
            'redocusaurus',
            {
              specs: [{
                specUrl: 'https://redocly.github.io/redoc/openapi.yaml',
              }],
            }
          ],
        ],
        // ...
      }
    • Pass it a OpenAPI spec local path

      // docusaurus.config.js
      
      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://rohit-gohri.github.io/redocusaurus/docs

Details


Assets

  • redocusaurus-0.7.0-v4-npm.tgz

Download activity

  • Total downloads 18
  • Last 30 days 0
  • Last week 0
  • Today 0