Skip to content

Commit

Permalink
Address readthedocs deprecations. (#1001)
Browse files Browse the repository at this point in the history
* Address readthedocs deprecations.

https://about.readthedocs.com/blog/2024/07/addons-by-default/

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
joaander and pre-commit-ci[bot] authored Jul 23, 2024
1 parent 615c90b commit 3f74177
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,18 @@
to show the default.
"""

import os

import sphinx_rtd_theme

# 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
html_context = {}
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down

0 comments on commit 3f74177

Please sign in to comment.