README
Docusaurus Theme Redoc
This theme provides a Redoc and a ApiDoc theme component with a theme matching the default docusaurus classic theme and dark mode support.
Usage
Install theme:
npm i --save docusaurus-theme-redocAdd it as a theme to your docusaurus config:
// docusaurus.config.js module.exports = { // ... themes: ['docusaurus-theme-redoc'], // ... };
Theme Components
Redoc
RedocStandalone with dark mode support, matching docusaurus classic theme.
import Redoc from '@theme/Redoc';
ApiDoc
Includes a @theme/Layout wrapper over Redoc.
import ApiDoc from '@theme/ApiDoc';
Options
primaryColor
Hex code to be passed as the main color to RedocStandalone
redocOptions
Override the default redoc options passed to the RedocStandalone component. See the defaults here.
Related Preset
Read More Here: https://github.com/rohit-gohri/redocusaurus