Skip to content

Commit

Permalink
Fix support for Read the Docs addons
Browse files Browse the repository at this point in the history
  • Loading branch information
SkypLabs committed Oct 26, 2024
1 parent 58c7d63 commit 5c6c1ae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# pylint: skip-file

from datetime import datetime
from os import environ

from probequest import __version__ as VERSION

Expand Down Expand Up @@ -62,3 +63,15 @@
# http://blockdiag.com/en/seqdiag/sphinxcontrib.html

seqdiag_fontpath = "/usr/share/fonts/truetype/ipafont/ipagp.ttf"

# -- Read the Docs -----------------------------------------------------------

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

# Tell Jinja2 templates the build is running on Read the Docs
if environ.get("READTHEDOCS", "") == "True":
if "html_context" not in globals():
html_context = {}

html_context["READTHEDOCS"] = True

0 comments on commit 5c6c1ae

Please sign in to comment.