-
Notifications
You must be signed in to change notification settings - Fork 207
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
context
For pages with no sidebar, i.e. pages with an empty array in html_sidebars = { "404": [], }, the toggle sidebar button is still visible.
expectation
The toggle sidebar button is hidden when no navigation is to be displayed.
bug
The toggle sidebar button is displayed. And clicking it gives the following error:
Uncaught TypeError: Cannot read properties of null (reading 'focus')
at pydata-sphinx-theme.js:681:34problem
This is an issue when you opt to hide the navigation tree for specific pages using the nifty setting.
Reproduce the bug
- Set up your sphinx book theme
- Add an arbitrary page to the
html_sidebarssetting in conf.py and set it to empty array[]
html_sidebars = {
"404": [],
}
- Build the documentation
- Open the page and look for the hamburger button on the top left hand side
- Click it to see the error in the browser console
List your environment
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working