Skip to content

Commit

Permalink
[8.2.x] Add html_baseurl to sphinx conf.py (#12372)
Browse files Browse the repository at this point in the history
Co-authored-by: James Frost <[email protected]>
  • Loading branch information
github-actions[bot] and jfrost-mo authored May 26, 2024
1 parent a5ee3c4 commit 240a252
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ Jake VanderPlas
Jakob van Santen
Jakub Mitoraj
James Bourbeau
James Frost
Jan Balster
Janne Vanhala
Jason R. Coombs
Expand Down
1 change: 1 addition & 0 deletions changelog/12363.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The documentation webpages now links to a canonical version to reduce outdated documentation in search engine results.
3 changes: 3 additions & 0 deletions doc/en/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@
# Output file base name for HTML help builder.
htmlhelp_basename = "pytestdoc"

# The base URL which points to the root of the HTML documentation. It is used
# to indicate the location of document using the canonical link relation (#12363).
html_baseurl = "https://docs.pytest.org/en/stable/"

# -- Options for LaTeX output --------------------------------------------------

Expand Down

0 comments on commit 240a252

Please sign in to comment.