Open verdverm opened 2 years ago
Have you tried this in .vuepress/config.js
?
theme: defaultTheme({
locales: {
'/': { sidebar: false }
}
})
@surya-purohit yes, the issue description mentions that it is explicitly set. The problem is that the value is not checked in all the places it is needed
This is VuePress 1 repo, please ensure you are using correct version and reading correct docs, VuePress 2 repo are at VuePress/VuePress-next
You closed that one as not a bug (see the linked issue above)
I still regard it as a bug, because when I set the menu to not display, per the config, the menu button is still shown
The fix looked to be minimal, and would use the same logic as the menu area component
Bug report
Steps to reproduce
Using
2.0.0-beta.35
config.js
filesidebar: false
in the theme configWhat is expected?
That the hamburger menu is not displayed
What is actually happening?
Sidebar is not displayed, but the hamburger button is visible on mobile breakpoints. Looking at the theme code, I think that the
showSidebar
variable is not passed and available tov-if
the hamburger menu. This is in thetheme-default/lib/client/layouts/Layout.vue
file (in node_modules, can't find where the .Other relevant information
images
Normal width
Narrow width
Open menu