Skip to main content

Docusaurus Setup (Sidebar)

Below is a minimal sidebars.js that shows the generated docs under a single “Materials” section.

sidebars.js
// @ts-check
/** @type {tutorialSidebar: import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
docsSidebar: [
{
type: 'category',
label: 'Just Doc It',
collapsible: true,
collapsed: false,
items: [
'just-doc-it/just-doc-it', // Overview
'just-doc-it/installation',
'just-doc-it/usage',
'just-doc-it/output-structure',
'just-doc-it/customization',
'just-doc-it/troubleshooting',
'just-doc-it/faq',
'just-doc-it/changelog',
],
},
// Tip: Place exported material docs under another category (e.g., 'Materials')
],
};

module.exports = sidebars;
tip

If you place the exported docs inside your Docusaurus docs folder, use a separate category (e.g., Materials) and let the plugin’s sidebar_position control the ordering inside that category.