-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SEO enhancements / requests #137
Comments
@MatthewCroughan I'm assigning this to you since you probably hacked the most the docs and Sphinx, so any inputs/insights is welcome. |
I believe this is the right config option for our theme. Though if we were ever to change the theme, we'd have to re-investigate this option. It's interesting that the theme has control over how the canonical url is presented. A mistake in the architecture of Sphinx probably. I will look into this after I have solved the higher priority tasks. https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html#confval-canonical_url |
Yeah, that was my finding as well, but as far as I understood that setting only works for the root url (the homepage), and we need it for all pages. |
For as long as we use the RTD theme, I do not think structured data is possible today. |
Signed-off-by: Matthew Croughan <[email protected]>
This should be fixed by a8eabcd This comment turned out to be correct. #137 (comment) As can be seen by a grep, each page now has a unique canonical url that points to index.html, which I believe is what we want:
|
Signed-off-by: Matthew Croughan <[email protected]>
We've been asked to look into some SEO enhancements after a few crawls of our websites have been performed and SEO-related issues have been detected.
I tried to look into solving some of those, but I have no idea how to achieve that with Sphinx (or if it's even possible).
The issues we should try to fix are:
Pages like this can also be accessed and indexed without the trailing
index.html
(here) and should contain a canonical link (ideally to the one without theindex.html
) or search engines will consider the content as duplicate, and index it twice. I looked into Sphinx docs, but could not find an easy solution without having to hack the Sphinx theme.publisher
,author
,datePublished
(and possibly others) tags in each pageI'm not even sure if we can or want to fix those. These are parts of what Google call structured data and results in higher page rankings, better search results etc.... I know what needs to be added to the pages, I have no idea how to achieve that with Sphinx.
The text was updated successfully, but these errors were encountered: