Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redocusaurus

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redocusaurus

Redoc for DocusaurusV2

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20K
increased by8.08%
Maintainers
1
Weekly downloads
 
Created
Source

Redocusaurus

npm

Redoc for Docusaurus v2.

Usage

  1. Install redocusaurus:
npm i --save redocusaurus
# OR
yarn add redocusaurus
  1. Add it as a preset to your docusaurus config and pass options:

    • Pass it a path to a local OpenAPI YAML file
    // docusaurus.config.js
    
    module.exports = {
      // ...
      presets: [
        [
          'redocusaurus',
          {
            // Plugin Options for loading OpenAPI files
            specs: [
              {
                spec: 'openapi/openapi.yaml',
                route: '/api/',
              },
            ],
            // Theme Options for modifying how redoc renders them
            theme: {
              // Change with your site colors
              primaryColor: '#1890ff',
            },
          },
        ],
      ],
      // ...
    };
    
  • OR Pass it a OpenAPI spec URL

    // docusaurus.config.js
    
    module.exports = {
      // ...
      presets: [
        [
          'redocusaurus',
          {
            // Plugin Options for loading OpenAPI files
            specs: [
              {
                spec: 'https://redocly.github.io/redoc/openapi.yaml',
                route: '/api/',
              },
            ],
            // Theme Options for modifying how redoc renders them
            theme: {
              // Change with your site colors
              primaryColor: '#1890ff',
            },
          },
        ],
      ],
      // ...
    };
    

The API Doc will be available at the route specified (/api/ in the example above). 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

Keywords

FAQs

Package last updated on 15 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc