From 1096f5affb0e38da99842b5d782d2905a3748ac7 Mon Sep 17 00:00:00 2001 From: Kilian Lieret Date: Tue, 14 Nov 2023 12:04:25 -0500 Subject: [PATCH] Fix inclusion of plausible script (#71) --- conf.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/conf.py b/conf.py index 5c5caef3..ee5b441d 100644 --- a/conf.py +++ b/conf.py @@ -44,9 +44,13 @@ def hsf_ci_setup(app): nbsphinx_execute = 'always' nbsphinx_timeout = 60*20 -_PLAUSIBLE_SNIPPET = '' old_setup = setup # imported from conf.py + + def setup(app): - app.add_js_file(None, body=_PLAUSIBLE_SNIPPET) + app.add_js_file( + "https://views.scientific-python.org/js/script.js", + **{"defer": "defer", "data-domain": "hepsoftwarefoundation.org"} + ) old_setup(app)