Skip to content

Commit

Permalink
doc: update sphinx configs for RTD changes
Browse files Browse the repository at this point in the history
Read The Docs made some changes that require us to add some
configuration in our build config files.

Signed-off-by: Quentin Young <[email protected]>
  • Loading branch information
qlyoung committed Aug 21, 2024
1 parent e2d6356 commit 95d9bf1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/developer/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@
# The full version, including alpha/beta/rc tags.
release = u"?.?-?"

# 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


# -----------------------------------------------------------------------------
# Extract values from codebase for substitution into docs.
Expand Down
10 changes: 10 additions & 0 deletions doc/user/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@
# The full version, including alpha/beta/rc tags.
release = u"?.?-?"

# RTD configuration

# 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



# -----------------------------------------------------------------------------
# Extract values from codebase for substitution into docs.
Expand Down

0 comments on commit 95d9bf1

Please sign in to comment.