Configure Docusaurus
Most ConsenSys documentation sites are built using Docusaurus.
A Docusaurus site organizes most of its configuration in
the docusaurus.config.js
file, including the following key elements.
Top navigation
Configure the top navigation in the navbar section of the theme configuration.
Example navbar configuration
Sidebar
Pass the sidebar to the sidebarPath
key in your docs
instance, whether it's to the docs
section of the classic
preset or directly to the
content-docs
plugin.
Define and customize your sidebar in a separate sidebar file (sidebars.js
by default).
You can manually configure your sidebar items in
sidebars.js
, or auto-generate sidebar items.
Auto-generated sidebar items require including
metadata in the
individual pages if you want to configure relative position, custom label, custom URL, etc.
Example sidebar configuration
Footer
Configure the footer in the footer section of the theme configuration.
Example footer configuration
Redirects
Use the plugin-client-redirects
plugin to configure redirects.