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:34
problem
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_sidebars setting 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
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:
problem
This is an issue when you opt to hide the navigation tree for specific pages using the nifty setting.
Reproduce the bug
html_sidebarssetting in conf.py and set it to empty array[]List your environment
No response