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

docusaurus-plugin-redoc

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docusaurus-plugin-redoc

Redoc Plugin for DocusaurusV2

  • 0.0.0-beta-20220315034112
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16K
decreased by-13.09%
Maintainers
1
Weekly downloads
 
Created
Source

Docusaurus Plugin Redoc

npm

This plugin parses your OpenAPI spec files and makes them available as plugin data. Can use to creates pages using the @theme/ApiDoc component from your theme, or render it through custom react pages.

⚠️⚠️⚠️ NOTE: Not recommended for direct use. Use through main package instead: redocusaurus

Options

spec (required, string: file path or remote absolute url)

Either a file path to an OpenAPI YAML/JSON file, or a url to one hosted on some website (not the same docusaurus website). Will be parsed at build time and forwarded to Redoc component.

url (optional, string: download url)

A url pointing to an OpenAPI spec. This will be used as download url and spec will be used for rendering. This is needed because by default the download url will point to a processed and parsed JSON file.

route (optional, string: relative uri)

Route URL at which docs would be available, this will use the theme component @theme/ApiDoc from docusaurus-theme-redoc to render the page. You can also skip this option and render the docs as you wish using a custom page.

layout (optional, object: layoutProps)

An object to pass as layout props. Useful to set title/description of the page. See all properties available here.

Docs

See https://redocusaurus.vercel.app/docs for examples and programmatic usage.

Keywords

FAQs

Package last updated on 15 Mar 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