Skip to content

Commit

Permalink
Update conf.py, sphinx context injection deprecated in ReadTheDocs
Browse files Browse the repository at this point in the history
ReadTheDocs is deprecating sphinx context injection. See details at #382
  • Loading branch information
GenevieveBuckley authored Jul 17, 2024
1 parent 77a29ba commit 11953f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@

# -- Options for HTML output -------------------------------------------

# Set canonical URL from the Read the Docs Domain
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")

# Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'dask_sphinx_theme'
Expand Down

0 comments on commit 11953f7

Please sign in to comment.