Skip to content

Commit 4e22d28

Browse files
committed
[doc] Use RTD canonical URL.
1 parent 679d5e0 commit 4e22d28

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

doc/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,9 @@ def is_readthedocs_build():
378378

379379
# -- Options for HTML output ----------------------------------------------
380380

381+
# See RTD document for the effect of using canonical URL on SEO.
382+
html_baseurl: str = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
383+
381384
# The theme to use for HTML and HTML Help pages. See the documentation for
382385
# a list of builtin themes.
383386
html_theme = "sphinx_rtd_theme"

0 commit comments

Comments
 (0)