Skip to content

Commit

Permalink
Update conf.py for recent changes to sphinx_rtd_theme and RTD.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Oct 1, 2024
1 parent 2472146 commit 9c8ca70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
import os
import sys

import sphinx_rtd_theme

import bezier # ``bezier`` must be installed to build the docs.

# If extensions (or modules to document with autodoc) are in another directory,
Expand All @@ -39,7 +37,7 @@

# If your documentation needs a minimal Sphinx version, state it here.
#
needs_sphinx = "6.2.1"
needs_sphinx = "8.0.2"
# See: https://github.com/readthedocs/sphinx_rtd_theme/issues/1463

nitpicky = True
Expand Down Expand Up @@ -153,8 +151,10 @@
#
html_theme = "sphinx_rtd_theme"
ON_READ_THE_DOCS = os.environ.get("READTHEDOCS") == "True"
if not ON_READ_THE_DOCS:
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
if ON_READ_THE_DOCS:
if "html_context" not in globals():
html_context = {}
html_context["READTHEDOCS"] = True

# 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
Expand Down

0 comments on commit 9c8ca70

Please sign in to comment.