conf: Fix RTD theme.

Fixes https://github.com/pybricks/pybricks-api/issues/150
This commit is contained in:
Laurens Valk
2023-10-23 20:49:35 +02:00
parent 6bbdccb25f
commit b97eef8152
+3 -6
View File
@@ -145,13 +145,10 @@ add_module_names = False # Hide module name
# -- Options for HTML output ----------------------------------------------
if ON_RTD:
html_theme = "default"
else:
import sphinx_rtd_theme
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_context = {
"disclaimer": _DISCLAIMER,