Skip to content

Commit

Permalink
docs: Add doc canonical link (#5076)
Browse files Browse the repository at this point in the history
* Add doc canonical link

Signed-off-by: Sherlock113 <[email protected]>

* ci: auto fixes from pre-commit.ci

For more information, see https://pre-commit.ci

---------

Signed-off-by: Sherlock113 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Sherlock113 and pre-commit-ci[bot] authored Nov 11, 2024
1 parent 220a69f commit 1668b10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import importlib.metadata
import os
from datetime import datetime

# -- Project information -----------------------------------------------------
Expand Down Expand Up @@ -156,6 +157,9 @@
"dark_logo": "img/logo-dark.svg",
}

# Set canonical URL from readthedocs domain
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "/")

html_title = "BentoML"
html_static_path = ["_static"]
html_css_files = [
Expand Down

0 comments on commit 1668b10

Please sign in to comment.