Skip to content

Commit

Permalink
Breaking change themeConfig.hideableSidebar -> themeConfig.docs.sideb…
Browse files Browse the repository at this point in the history
…ar.hideable

Link: facebook/docusaurus#7277
  • Loading branch information
s4dr0t1 committed May 12, 2022
1 parent 82a8bec commit cfa5d9d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
//theme configuration
themeConfig: {
image: '/img/opengraph.png', //open graph image
hideableSidebar: true, //for documentation
// hideableSidebar: true, //for documentation -->> Breaking changes, check https://github.com/facebook/docusaurus/pull/7277
prism: {
//add additional languages here if need be, has prism as its dependency
additionalLanguages: ['powershell'],
Expand All @@ -33,6 +33,12 @@ module.exports = {
respectPrefersColorScheme: false,
},

docs: {
sidebar: {
hideable: true,
}
},

//defining what should docusauras's behavour be, in case anything bad happens
noIndex: false, //enable or disable website crawling
onBrokenLinks: 'throw',
Expand Down

0 comments on commit cfa5d9d

Please sign in to comment.