post on execution on RTD

This commit is contained in:
Patrick Kanzler 2023-05-18 16:12:56 +02:00
parent b487067597
commit 12b2eb3880

View File

@ -122,6 +122,7 @@ pygments_style = "sphinx"
# a list of builtin themes.
if on_rtd:
html_theme = "default"
print("recognized execution on RTD")
else:
try:
import sphinx_rtd_theme