pydata / pydata-sphinx-theme

A clean, three-column Sphinx theme with Bootstrap for the PyData community
https://pydata-sphinx-theme.readthedocs.io
BSD 3-Clause "New" or "Revised" License
565 stars 304 forks source link

Option to deactivate sidebar contents on a single page #1680

Closed timhoffm closed 5 months ago

timhoffm commented 6 months ago

At https://matplotlib.org/devdocs/users/release_notes.html we have a page that is only an index linking out to many further pages. The left sidebar basically repeats the long list of subpages (but worse because it does not have the sectioning information. I'd like to simply turn off the sidebar contents on this page. Is that possible? Or alternatively do you have alternatively suggestions how to structure such content?

drammock commented 6 months ago

not super easy to find in our docs, but it is there: https://pydata-sphinx-theme.readthedocs.io/en/stable/examples/no-sidebar.html

in conf.py

html_sidebars = {
  "path/to/page": [],
}