Skip to content

Commit

Permalink
Fix inclusion of plausible script (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
klieret authored Nov 14, 2023
1 parent 3bf10ce commit 1096f5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ def hsf_ci_setup(app):
nbsphinx_execute = 'always'
nbsphinx_timeout = 60*20

_PLAUSIBLE_SNIPPET = '<script defer data-domain="hepsoftwarefoundation.org" src="https://views.scientific-python.org/js/script.js"></script>'

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)

0 comments on commit 1096f5a

Please sign in to comment.