Repository navigation
Add html_baseurl to sphinx conf.py - #12364
Merged
Merged
Conversation
This is used to set the <link rel="canonical" href="X"> tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up. Fixes #12363
Member
|
Thanks @jfrost-mo! Here is the current configuration:
Is this correct? |
Contributor
Author
jfrost-mo
marked this pull request as ready for review
May 24, 2024 15:17
Member
|
Great, thanks for confirming. In any case, I personally prefer for that configuration to be in pytest's repository anyway, rather than "tucked away" in ReadTheDocs config. Thanks again! |
nicoddemus
reviewed
May 24, 2024
nicoddemus
approved these changes
May 24, 2024
Contributor
Author
This was referenced May 28, 2024
nicoddemus
pushed a commit
that referenced
this pull request
May 30, 2024
This is used to set the <link rel="canonical" href="X"> tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up. Fixes #12363
nicoddemus
pushed a commit
that referenced
this pull request
May 30, 2024
This is used to set the <link rel="canonical" href="X"> tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up. Fixes #12363
nicoddemus
pushed a commit
that referenced
this pull request
May 30, 2024
This is used to set the <link rel="canonical" href="X"> tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up. Fixes #12363
nicoddemus
pushed a commit
that referenced
this pull request
May 30, 2024
This is used to set the <link rel="canonical" href="X"> tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up. Fixes #12363
nicoddemus
pushed a commit
that referenced
this pull request
May 30, 2024
This is used to set the <link rel="canonical" href="X"> tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up. Fixes #12363
nicoddemus
pushed a commit
that referenced
this pull request
May 30, 2024
This is used to set the <link rel="canonical" href="X"> tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up. Fixes #12363
nicoddemus
pushed a commit
that referenced
this pull request
May 30, 2024
This is used to set the <link rel="canonical" href="X"> tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up. Fixes #12363
nicoddemus
pushed a commit
that referenced
this pull request
May 30, 2024
This is used to set the <link rel="canonical" href="X"> tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up. Fixes #12363
nicoddemus
pushed a commit
that referenced
this pull request
May 30, 2024
This is used to set the <link rel="canonical" href="X"> tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up. Fixes #12363
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This is used to set the tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up.
Fixes #12363
It would be worth checking the ReadTheDocs admin settings first, which I don't have access to. But if the domain is already set correctly as the canonical one, then this PR should manually add in the required HTML tag.
This change will also have to be backported to old versions of the documentation to have the desired effect on search engine indexes.