Skip to content

Commit

Permalink
docs: update the docs configs;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Jul 15, 2024
1 parent 4200c94 commit 499e0c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
release = pypots.__version__

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

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand Down Expand Up @@ -98,6 +100,9 @@
html_context = {
"last_updated": f"{date_now.year}/{date_now.month}/{date_now.day}",
}
# Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True

html_favicon = (
"https://raw.githubusercontent.com/"
Expand Down

0 comments on commit 499e0c3

Please sign in to comment.