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
600 stars 313 forks source link

:bug: BUG - version switcher in sidebar #1805

Open enryH opened 4 months ago

enryH commented 4 months ago

Hey!

Thanks for the grate template. It might be an issue related to #1629. If I follow the instructions as described here to add the switcher to the sidebar, I ran into the following error:

sphinx.errors.ThemeError: An error happened in rendering the page developer-guide/adding-module.
Reason: UndefinedError("'super' is undefined")

I added the a _template_path to the conf.py and added to the file _templates/sidebar-nav-bs.html as specifed in the _templates folder.

Full logs: https://readthedocs.org/projects/proteobench/builds/24292044/

I have the switcher no in the navigation bar and that works fine


@trallard edits

Ref: PST documentation to edit the switcher https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/version-dropdown.html#specify-where-to-display-the-switcher