-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Research ways to improve SEO #63
Comments
I did a quick reading on a few blogs about SEO.
|
Google Chrome has something in devtools called Lighthouse that runs an audit on a webpage:
There's also an online version: https://web.dev/measure/ Results for an arbitrary page (https://docs.python.org/3/library/csv.html) are pretty good to begin with: Links to those recommendations:
The first one should be pretty easy, and we should the second. The last is bigger theme work, and we may get a good enough bump from the first one or two. |
For the first one, https://pypi.org/project/sphinxext-opengraph/ is a Sphinx extension to automatically add OpenGraph metadata. It doesn't add However, we will need to know the version number of the actual docs build (e.g. (it could be |
During the last call someone mentioned that "searching for specific functions doesn't bring docs.p.o up as first result". In the chat I suggested to add the entries that recently got added to the docs ToC in a However It's also been a few years since I last looked into SEO-related stuff, and I have the impression that nowadays the meta keywords are not as important anymore (I might be mistaken, or there might be something equivalent/better). Some concern was also brought up about search engines indexing version of the docs that shouldn't be indexed, e.g. docs PR previews or outdated versions. This could be solved by adding an explicit |
Good suggestions.
Maybe, although I think a good rule of thumb for good Google results is to follow the suggestions by Google's SEO tool :) |
I contributed some improvements to this extension, including adding We've added it to the devguide, and the SEO score has increased from 91 to 100. It also improves the previews on Facebook, Slack, Discord, etc.
We can look into adding it to the main docs next. |
Next up! PR to add the same thing to https://docs.python.org: |
This is now on For example:
(Note: It's not on the Google's Pagespeed Insights, SEO scoreIncreased from 81 to 88 on mobile, and 83 to 92 on desktop. As expected the meta description now passes. ✅ Details
Here's how the new page looks on Facebook's sharing debugger: Interestingly, because old pages like https://docs.python.org/3.10/library/csv.html declare their canonical URL to be the
So here's 3.10: We have to go back to 2.7 to see how it was before: Discord
SlackAlso |
How to improve docs.python.org's SEO ranking?
Come up with action items on how the SEO can be improved.
The text was updated successfully, but these errors were encountered: