Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make sidebar not collapsable and always expanded in docusaurus V2 classic preset

Tags:

docusaurus

If you use classic template when creating the doc, you'll get a sidebar like this:

(Docusaurus v2)

How can I keep using this preset and have a sidebar always expanded like this:

(ComponentKit)

like image 759
Mahdi-Malv Avatar asked Nov 05 '25 05:11

Mahdi-Malv


1 Answers

Sidebar collapsing is a theme configuration attribute. You can modify this:

// docusaurus.config.js
module.exports = {
  // ...
  themeConfig: {
    sidebarCollapsible: false,
    // ...
  },
};
like image 50
Endi Avatar answered Nov 08 '25 00:11

Endi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!