Skip to content

Commit

Permalink
Adjust Sphinx configuration for https://about.readthedocs.com/blog/20…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Aug 26, 2024
1 parent f8373b7 commit c26aeb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@
# Output file base name for HTML help builder.
htmlhelp_basename = 'Nikoladoc'

# 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

# -- Options for LaTeX output ---------------------------------------------

Expand Down

0 comments on commit c26aeb0

Please sign in to comment.