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