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

Feature Request: option to customize the version warning banner #1701

Closed Charlie-XIAO closed 5 months ago

Charlie-XIAO commented 5 months ago

In scikit-learn our current version warning banner provides additional information than simply indicating whether this an old doc or dev doc. For instance, on a dev doc we point users to the nightly build instructions.

Is it possible that pydata-sphinx-theme supports an option in html_theme_options to allow customizing the innerHTML of div.bd-header-announcement__content? For instance,