Skip to content

Commit 240a252

Browse files
[8.2.x] Add html_baseurl to sphinx conf.py (#12372)
Co-authored-by: James Frost <[email protected]>
1 parent a5ee3c4 commit 240a252

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Diff for: AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ Jake VanderPlas
192192
Jakob van Santen
193193
Jakub Mitoraj
194194
James Bourbeau
195+
James Frost
195196
Jan Balster
196197
Janne Vanhala
197198
Jason R. Coombs

Diff for: changelog/12363.doc.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The documentation webpages now links to a canonical version to reduce outdated documentation in search engine results.

Diff for: doc/en/conf.py

+3
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@
312312
# Output file base name for HTML help builder.
313313
htmlhelp_basename = "pytestdoc"
314314

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

316319
# -- Options for LaTeX output --------------------------------------------------
317320

0 commit comments

Comments
 (0)