From e9a4201645aee1e1b7b5d5fd12dc30fd8f905cfb Mon Sep 17 00:00:00 2001 From: Rachel Clune Date: Mon, 27 Jul 2026 09:50:41 -0700 Subject: [PATCH] Add Simple Analytics script to Sphinx config Add html_js_files to docs/source/conf.py to include the Simple Analytics CDN script in the generated docs HTML. The script is loaded with async and defer attributes to avoid blocking page rendering and enable basic analytics for the documentation site. --- docs/source/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index 82f08a1..9670b22 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -61,3 +61,7 @@ ".rst": "restructuredtext", ".md": "markdown", } + +html_js_files = [ + ('https://scripts.simpleanalyticscdn.com/latest.js', {'async': 'async', 'defer': 'defer'}), +]