From b9b4a31d6034f7e707654457eec35957703ee37c Mon Sep 17 00:00:00 2001 From: Jeremy Hooke Date: Tue, 25 Jun 2024 14:29:56 +1000 Subject: [PATCH] Explicitly use the sphinx_rtd_theme This used to be the default, but seems to have changed. --- docs/conf.py | 9 +-------- docs/requirements.txt | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 29f87f01..75c603a9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -58,11 +58,4 @@ # overwrite the builtin "default.css". # html_static_path = ["_static"] - -if is_on_readthedocs: - html_theme = "default" -else: - import sphinx_rtd_theme - - html_theme = "sphinx_rtd_theme" - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +html_theme = "sphinx_rtd_theme" diff --git a/docs/requirements.txt b/docs/requirements.txt index a839f13c..ef81d70d 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,2 +1,3 @@ . sphinx-autodoc-typehints +sphinx-rtd-theme