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,
version_warning_old and version_warning_dev that take a string each; or
version_warning_js that takes a remote path to a JS script, in which one defines a function to return the desired innerHTML (might be better because we will be able to take some parameters such as which is the stable version and implement some logic, but trickier to realize).
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 inhtml_theme_options
to allow customizing theinnerHTML
ofdiv.bd-header-announcement__content
? For instance,version_warning_old
andversion_warning_dev
that take a string each; orversion_warning_js
that takes a remote path to a JS script, in which one defines a function to return the desiredinnerHTML
(might be better because we will be able to take some parameters such as which is the stable version and implement some logic, but trickier to realize).