@readyapi/docusaurus
TypeScript icon, indicating that this package has built-in type declarations

0.2.15 • Public • Published

Scalar Docusaurus API Reference Plugin "Scalasaurus"

Version Downloads License Discord

scalasaurus

Installation

npm install @readyapi/docusaurus

Usage

Simple add to the plugins section of your Docusaurus config. If you are using typescript you can import the type options type as well

import type { ScalarOptions } from '@readyapi/docusaurus'

plugins: [
  [
    ['@readyapi/docusaurus', {
      label: 'Scalar',
      route: '/scalar',
      configuration: {
        spec: {
          url: 'https://petstore3.swagger.io/api/v3/openapi.json',
        },
      },
    } as ScalarOptions],
  ],
],

Example

You can find an example in this repo under examples/docusaurus

Config

These configuration options are a WIP as this plugin is still in beta

label: string

The label on the nav bar for this route

route: string

Path at which the API Reference will be shown

configuration: ReferenceProps

You can find the full configuration options under packages/api-reference minus theme.

Package Sidebar

Install

npm i @readyapi/docusaurus

Weekly Downloads

1

Version

0.2.15

License

MIT

Unpacked Size

112 kB

Total Files

10

Last publish

Collaborators

  • nextlinux