Skip to content

Commit 6c295a7

Browse files
authored
Add canonical URL to configuration (#3573)
1 parent b18f9c7 commit 6c295a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def wrapper(*args, **kwargs):
145145

146146
intersphinx_mapping = {
147147
"torch": ("https://docs.pytorch.org/docs/stable/", None),
148-
"tensordict": ("https://docs.pytorch.github.io/tensordict/stable", None),
148+
"tensordict": ("https://docs.pytorch.org/tensordict/stable", None),
149149
"torchrl": ("https://docs.pytorch.org/rl/stable", None),
150150
"torchaudio": ("https://docs.pytorch.org/audio/stable/", None),
151151
"torchtext": ("https://docs.pytorch.org/text/stable/", None),
@@ -236,6 +236,7 @@ def wrapper(*args, **kwargs):
236236
"navbar_center": "navbar-nav",
237237
"display_version": True,
238238
"pytorch_project": "tutorials",
239+
"canonical_url": "https://docs.pytorch.org/tutorials/",
239240
}
240241

241242
theme_variables = pytorch_sphinx_theme2.get_theme_variables()

0 commit comments

Comments
 (0)