From d7c58805bc19bbe1c54d395cc5d0177b1b698f07 Mon Sep 17 00:00:00 2001 From: bensynapse <118375461+bensynapse@users.noreply.github.com> Date: Tue, 6 Oct 2026 17:21:20 +0300 Subject: [PATCH] Add search engine verification tags to the docs Google Search Console and Bing Webmaster Tools both verify a URL-prefix site by looking for a meta tag on the home page. The tokens go in mkdocs.yml and the theme override writes them into the head. --- mkdocs.yml | 4 ++++ overrides/main.html | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/mkdocs.yml b/mkdocs.yml index ea611ab..6d09d38 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -54,6 +54,10 @@ extra: unreleased: "5.0.10" pypi_version: "5.0.9" social_image: assets/social-card.png + # Ownership tokens for Google Search Console and Bing Webmaster Tools. + # Both services re-check them, so leave them in after verification. + google_site_verification: 5mHS0iCWy8mBpJ2XYFljYI1E2r6ew3nz55dVjZJAoZQ + bing_site_verification: 284F7E6020A3E99F2916C1E3DE4F175D plugins: - search - mkdocstrings: diff --git a/overrides/main.html b/overrides/main.html index a004c8a..7a4051b 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -31,6 +31,12 @@ {%- set description = meta.description or config.site_description -%} {%- set image = config.site_url ~ config.extra.social_image -%} + {%- if config.extra.google_site_verification %} + + {%- endif %} + {%- if config.extra.bing_site_verification %} + + {%- endif %}