Skip to content

Commit

Permalink
MNT: Add rtd required code blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Oct 6, 2024
1 parent d724ccc commit 6e82ae1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@
"pynldas2": "PyNLDAS2",
"hydrosignatures": "HydroSignatures",
}

# Define the canonical URL if you are using a custom domain on Read the Docs
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":
if "html_context" not in globals():
html_context = {}
html_context["READTHEDOCS"] = True
# -- General configuration ---------------------------------------------------

extensions = [
Expand Down

0 comments on commit 6e82ae1

Please sign in to comment.