-
-
Notifications
You must be signed in to change notification settings - Fork 669
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add HTML meta tags "description" with QGIS version and for outdated docs "robots" with noindex #8121
Conversation
4022c4b
to
6b5f166
Compare
@pathmapper Thanks for addressing this issue |
361e404
to
d7a8e7f
Compare
Good find @DelazJ ! Looks like we were running into readthedocs/sphinx_rtd_theme#469. I've implemented it another way and added also the page title to the content to have unique descriptions (which is recommended by Google).
I think we have nothing to loose here - well, only the currently automatically generated snippets :-) |
d7a8e7f
to
5dda651
Compare
5dda651
to
eff87b7
Compare
It's great to see this being addressed, and the proposed solution looks promising! I'm wondering, though, if we might want to shorten the description a bit, since Google and others tend to limit the length of the snippet. Maybe instead of:
we use something like
|
@kgjenkins thanks for your feedback. I don't think we have to shorten the description (there are much longer snippets around, also docs is used as abbreviation for doctors) but I do like your suggestion to move
That said, I have no strong opinion here. |
to prevent outdated docs popping up in search results
20a15ee
to
2a082d2
Compare
@DelazJ should be good to merge (unrelated test failure). |
OK let's then try |
closes #6449
ref https://lists.osgeo.org/pipermail/qgis-developer/2023-March/065647.html
from #6449 (comment)
There's a good chance that Google/other search engines would use an HTML meta tag
description
for the snippet when displaying search results:https://developers.google.com/search/docs/appearance/snippet#meta-descriptions
This PR
Here's an example which demonstrates this: https://www.google.com/search?q=geoportal+niederrhein
Source of https://geoportal-niederrhein.de/
I'm not familiar with the release workflow of the docs, but looking at the code I guess the specific version will be used here when building the docs for deployment:
QGIS-Documentation/conf.py
Line 49 in f8b046a
Would be great if someone could confirm 馃槃
We could potentially add additional HTML meta tags there, e.g. to exclude outdated docs from search results.
Here are some options:
/cc @DelazJ @rduivenvoorde