From e477b2a524112716b3f7aee5a0994f197a0219fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udia?= Date: Thu, 16 Jul 2026 12:10:15 +0100 Subject: [PATCH 1/3] test: reproduce navigation.instant + CookieYes on preview (do not merge) Re-enables navigation.instant and injects the production CookieYes script into so the real banner + auto-blocking can be exercised against instant navigation on a Netlify preview (CookieYes is normally GTM-injected and scoped to docs.codacy.com, so it never fires on preview hosts). Throwaway branch for diagnosing the unstyled-on-navigation issue. Not for master. Co-Authored-By: Claude Opus 4.8 --- mkdocs.yml | 1 + theme/main.html | 6 ++++++ theme/partials/integrations/cookieyes.html | 8 ++++++++ 3 files changed, 15 insertions(+) create mode 100644 theme/partials/integrations/cookieyes.html diff --git a/mkdocs.yml b/mkdocs.yml index ec74385e82..b17149ce15 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -38,6 +38,7 @@ theme: - "search.suggest" - "content.code.copy" - "content.tabs.link" + - "navigation.instant" - "navigation.path" extra_css: - "stylesheets/fonts.css" diff --git a/theme/main.html b/theme/main.html index 8011eabbb9..3bff75c54f 100644 --- a/theme/main.html +++ b/theme/main.html @@ -5,6 +5,12 @@ {% endblock %} +{% block extrahead %} + {{ super() }} + {# TEST-ONLY (do not merge): exercise CookieYes under navigation.instant #} + {% include "partials/integrations/cookieyes.html" %} +{% endblock %} + {% block site_meta %} {{ super() }} {% if page and page.meta and page.meta.git_revision_date_localized_raw_iso_datetime %} diff --git a/theme/partials/integrations/cookieyes.html b/theme/partials/integrations/cookieyes.html new file mode 100644 index 0000000000..94d65e98d6 --- /dev/null +++ b/theme/partials/integrations/cookieyes.html @@ -0,0 +1,8 @@ +{# TEST-ONLY: reproduce navigation.instant + CookieYes interaction on a Netlify + preview. CookieYes is normally injected at runtime via GTM (scoped to + docs.codacy.com), so it never fires on a preview host — we inject it here so + the real CookieYes banner + auto-blocking can be exercised against instant + navigation. Do NOT merge this to master. #} + + + From ad947d0e53931ca0ce4773cc0562b387ab4a75bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udia?= Date: Thu, 16 Jul 2026 12:17:59 +0100 Subject: [PATCH 2/3] replace cookie tag to test staging --- theme/partials/integrations/cookieyes.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/theme/partials/integrations/cookieyes.html b/theme/partials/integrations/cookieyes.html index 94d65e98d6..065a4172f1 100644 --- a/theme/partials/integrations/cookieyes.html +++ b/theme/partials/integrations/cookieyes.html @@ -1,8 +1,7 @@ {# TEST-ONLY: reproduce navigation.instant + CookieYes interaction on a Netlify - preview. CookieYes is normally injected at runtime via GTM (scoped to - docs.codacy.com), so it never fires on a preview host — we inject it here so - the real CookieYes banner + auto-blocking can be exercised against instant - navigation. Do NOT merge this to master. #} + preview. Uses the CookieYes *staging site* key registered for this preview + host (banner enabled + auto-blocking), NOT the production key that GTM + injects on docs.codacy.com. Do NOT merge this to master. #} - + From 8468f09470567c93487cd4d01afa9d7231ad3926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udia?= Date: Thu, 16 Jul 2026 12:24:27 +0100 Subject: [PATCH 3/3] re-deploy --- theme/partials/integrations/cookieyes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/partials/integrations/cookieyes.html b/theme/partials/integrations/cookieyes.html index 065a4172f1..044f71d539 100644 --- a/theme/partials/integrations/cookieyes.html +++ b/theme/partials/integrations/cookieyes.html @@ -3,5 +3,5 @@ host (banner enabled + auto-blocking), NOT the production key that GTM injects on docs.codacy.com. Do NOT merge this to master. #} - +