Skip to content

Commit

Permalink
docs(backport): Use Plausible for page visit statistics (#2188)
Browse files Browse the repository at this point in the history
* Backport PR #2186
* Use the Scientific Python org's Plausible instance to collect page visit
  statistics for the pyhf docs by adding it to the html_js_files in the
  Sphinx config.
   - c.f. https://views.scientific-python.org/pyhf.readthedocs.io/
  • Loading branch information
matthewfeickert committed Apr 26, 2023
1 parent 153b6e5 commit 1009399
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ def setup(app):

html_js_files = [
'js/custom.js',
(
'https://views.scientific-python.org/js/plausible.js',
{"data-domain": "pyhf.readthedocs.io", "defer": "defer"},
),
]

# Add any extra paths that contain custom files (such as robots.txt or
Expand Down

0 comments on commit 1009399

Please sign in to comment.