9 Commits

Author SHA1 Message Date
Hugo Locurcio
6c87f04926 Add Open Graph tags for better link preview on social media
This is provided by the sphinxext-opengraph extension.

This also adds a theme color property in the HTML layout file.

(cherry picked from commit 9becaa5480)
2021-03-18 20:44:22 +01:00
Hugo Locurcio
d494d19dac Remove trailing whitespace and irregular whitespace 2020-05-17 00:26:19 +02:00
Max Hilbrunner
0b6d26e33d Prepend "(DEV)" to HTML titles if build locally/not on RTD 2020-04-28 16:53:08 +02:00
Max Hilbrunner
3c79f3e321 Fix locale names AGAIN :)
this time formatting to ISO 639-1 dynamically
2020-04-27 19:48:52 +02:00
Max Hilbrunner
fd5f6f4909 Appease our great search engine overlords
This hopefully fixes all translated pages showing up in search engine results, and makes the STABLE version of each page canonical.
In turn, this allows us to re-enable indexing of the version-specific pages (see robots.txt changes), as search engines should prefer the canonical (stable) version, and only show the other versions if no canonical (stable) version exists (i.e. because that feature is only in latest, or was removed in stable).

It adds proper canonical links for all generated pages, and fixes the existing links between the various translations of a page by both ensuring the pages links to itself with the proper language tag, and by properly linking to the full path of other translated versions.
2020-04-21 13:32:55 +02:00
StraToN
54c3b3e98a Adds a breadcrumb template to manage hiding 'Edit on Github' link.
To work, requires adding a meta the very beginning of files that have to hide this link:
:github_url: hide
2019-07-25 15:49:11 +02:00
Rémi Verschelde
a95cd08285 Use HTTPS for links which support it 2018-12-13 12:06:02 +01:00
Rémi Verschelde
4ef06a4135 Removing trailing whitespace
With `sed -i $(rg -l '[[:blank:]]*$' -g'!classes') -e 's/[[:blank:]]*$//g'`
2018-11-20 11:08:34 +01:00
Rémi Verschelde
b6cb5c3ee7 Add layout.html template to set hreflang attributes
Tentative fix for search engines pointing English-seeking users
to localized docs.
2018-06-12 23:08:16 +02:00