From 4c390e939403afe08ce32fd5fb974c322df13714 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Thu, 4 Jul 2024 21:29:56 +0800 Subject: [PATCH] docs: use sphinx_rtd_theme on rtd --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 199c2145..5901d8df 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -54,6 +54,7 @@ # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] +html_theme = "sphinx_rtd_theme" on_rtd = os.environ.get("READTHEDOCS", None) == "True" # On RTD we can't import sphinx_rtd_theme, but it will be applied by @@ -62,7 +63,6 @@ if not on_rtd: import sphinx_rtd_theme - html_theme = "sphinx_rtd_theme" html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] html_theme_options = {