sphinx-book-theme icon indicating copy to clipboard operation
sphinx-book-theme copied to clipboard

Removing secondary sidebar still takes up width

Open jack6th opened this issue 9 months ago • 0 comments

Describe the bug

From the documentation there are two ways to remove the secondary sidebar from a page: via page-wide metadata :html_theme.sidebar_secondary.remove: or via html_theme_options in conf.py and set the "secondary_sidebar_items" for a particular page into an empty list.

pydata_sphinx_theme works correctly.

In sphinx_book_theme the secondary sidebar actually still exists and takes up width, though empty.

It is like the fixed pydata_sphinx_theme issue https://github.com/pydata/pydata-sphinx-theme/issues/1686

Reproduce the bug

remove the secondary sidebar from a page: via page-wide metadata :html_theme.sidebar_secondary.remove: or via html_theme_options in conf.py and set the "secondary_sidebar_items"

List your environment

No response

jack6th avatar Mar 02 '25 03:03 jack6th