Skip to content

Commit

Permalink
Merge pull request #1182 from thewtex/rtd-custom
Browse files Browse the repository at this point in the history
STYLE: Specify ReadTheDocs custom domain name
  • Loading branch information
thewtex authored Jul 18, 2024
2 parents 55dc91e + 05cc828 commit c13cf7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
copyright = f'{date.today().year}, NumFOCUS'
author = 'Matt McCormick'

# Define the canonical URL if you are using a custom domain on Read the Docs
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "wasm.itk.org")

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

extensions = [
'sphinx.ext.napoleon',
'autodoc2',
Expand Down

0 comments on commit c13cf7b

Please sign in to comment.