From 818a42f9fead67b0d04441f8500ce20afaf3a112 Mon Sep 17 00:00:00 2001 From: Eduard Kerkhoven Date: Sun, 8 Nov 2026 20:47:01 +0100 Subject: [PATCH] Enable the GoatCounter page-view count The list of scripts that counts page views was replaced by a second assignment of html_js_files, so the built pages did not include it. The GoatCounter script is now part of the one list, as in raven-docs. --- docs/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index a5bafe5..8da3c55 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -64,15 +64,16 @@ html_favicon = "_static/gecko-icon.png" html_static_path = ["_static"] html_css_files = ["custom.css"] -# Page-view statistics of GoatCounter, which sets no cookies. +# Remembers the language of the code tabs across pages, browser tabs and visits. html_js_files = [ + "language-sync.js", + "mermaid-zoom.js", + # Page-view statistics of GoatCounter, which sets no cookies. ( "https://gc.zgo.at/count.js", {"async": "async", "data-goatcounter": "https://gecko-docs.goatcounter.com/count"}, ), ] -# Remembers the language of the code tabs across pages, browser tabs and visits. -html_js_files = ["language-sync.js", "mermaid-zoom.js"] # The source pages are generated MyST files, not something a reader can edit. html_show_sourcelink = False