From dbccd5d7d37e4525b91e8d219aea2d97902925e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Stenstr=C3=B6m?= Date: Sat, 23 Aug 2025 08:04:58 +0200 Subject: [PATCH] feat: add Google site verification meta tag support in MkDocs configuration --- docs/overrides/main.html | 12 ++++++++++++ mkdocs.yml | 1 + 2 files changed, 13 insertions(+) create mode 100644 docs/overrides/main.html diff --git a/docs/overrides/main.html b/docs/overrides/main.html new file mode 100644 index 00000000..9b435495 --- /dev/null +++ b/docs/overrides/main.html @@ -0,0 +1,12 @@ +{# + Theme override: inject Google site verification meta tag. + Uses documented extrahead block from Material for MkDocs. + If token changes, update in mkdocs.yml under extra.google_site_verification. +#} +{% extends "base.html" %} +{% block extrahead %} + {{ super() }} + {% if config.extra.google_site_verification %} + + {% endif %} +{% endblock %} diff --git a/mkdocs.yml b/mkdocs.yml index 6258fff3..6f32b6cd 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -80,6 +80,7 @@ extra: link: https://github.com/django-components/django-components - icon: fontawesome/brands/python link: https://pypi.org/project/django-components/ + google_site_verification: vQA3d50F2ByQxG0eB6b0YoPnYW9gZo8xnd6HKhCyuys markdown_extensions: abbr: {}