Skip to content

Commit e9a4201

Browse files
committed
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.
1 parent 31dd722 commit e9a4201

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎docs/source/conf.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,7 @@
6161
".rst": "restructuredtext",
6262
".md": "markdown",
6363
}
64+
65+
html_js_files = [
66+
('https://scripts.simpleanalyticscdn.com/latest.js', {'async': 'async', 'defer': 'defer'}),
67+
]

0 commit comments

Comments
 (0)