Skip to content

Commit

Permalink
chore: add some modifications to the Sphinx config file based on a no…
Browse files Browse the repository at this point in the history
…tification from Read the Docs
  • Loading branch information
ntamas committed Jul 17, 2024
1 parent 7caa934 commit f04cd57
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@ def get_igraph_version():
# Output file base name for HTML help builder.
htmlhelp_basename = "igraphdoc"

# Integration with Read the Docs since RTD is not manipulating the Sphinx
# config files on its own any more.
# This is according to:
# https://about.readthedocs.com/blog/2024/07/addons-by-default/
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
html_context = {}
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True

# -- Options for pydoctor ------------------------------------------------------

Expand Down

0 comments on commit f04cd57

Please sign in to comment.