summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2025-09-04 11:39:24 -0500
committerDamien George <damien@micropython.org>2025-09-16 10:39:46 +1000
commitc3040463849eb9b3e5f85706bb223d648e60510d (patch)
tree7d20be0f1f9479d71c036c7f1dc10d205698751d /docs/conf.py
parent2707ae032f8b211ae37446c1606e6a9ce411c2d9 (diff)
docs: Always use sphinx_rtd_theme.
Without this, the wy-alert block pushed all the content to the right, making the locally built pages nearly illegible. Signed-off-by: Jeff Epler <jepler@gmail.com>
Diffstat (limited to 'docs/conf.py')
-rwxr-xr-xdocs/conf.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/docs/conf.py b/docs/conf.py
index eb6148758..603543aa1 100755
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -55,6 +55,7 @@ extensions = [
"sphinx.ext.todo",
"sphinx.ext.coverage",
"sphinxcontrib.jquery",
+ "sphinx_rtd_theme",
]
# Add any paths that contain templates here, relative to this directory.
@@ -128,20 +129,9 @@ rst_epilog = """
# -- Options for HTML output ----------------------------------------------
-# on_rtd is whether we are on readthedocs.org
-on_rtd = os.environ.get("READTHEDOCS", None) == "True"
+import sphinx_rtd_theme
-if not on_rtd: # only import and set the theme if we're building docs locally
- try:
- import sphinx_rtd_theme
-
- html_theme = "sphinx_rtd_theme"
- html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
- except:
- html_theme = "default"
- html_theme_path = ["."]
-else:
- html_theme_path = ["."]
+html_theme = "sphinx_rtd_theme"
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the