Skip to content

Commit 2a358ec

Browse files
committed
plausible directly (no extension)
1 parent 104b5dc commit 2a358ec

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

content/conf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
'sphinx.ext.intersphinx',
4040
'sphinx.ext.mathjax',
4141
'sphinx_aaltoscicomp_branding',
42-
'sphinx_plausible',
4342
'sphinxext.opengraph',
4443
]
4544
myst_enable_extensions = ['colon_fence']
@@ -52,13 +51,14 @@
5251
ogp_image_alt = 'Python for Scientific Computing course logo with date of 22-25/11/2022, twitch.tv/coderefinery, and partner logos'
5352

5453
import os
55-
plausible_domain = 'aaltoscicomp.github.io/python-for-scicomp'
56-
plausible_script = 'https://plausible.cs.aalto.fi/js/plausible.js'
57-
plausible_enabled = (
54+
if (
5855
'GITHUB_ACTION' in os.environ
5956
and os.environ.get('GITHUB_REPOSITORY', '').lower() == 'aaltoscicomp/python-for-scicomp'
6057
and os.environ.get('GITHUB_REF') == 'refs/heads/master'
61-
)
58+
):
59+
html_js_files = [
60+
('https://plausible.cs.aalto.fi/js/script.js', {"data-domain": "aaltoscicomp.github.io/python-for-scicomp", "defer": "defer"}),
61+
]
6262

6363

6464
# Add any paths that contain templates here, relative to this directory.

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ sphinx-copybutton
55
sphinx-lesson
66
https://github.com/aaltoscicomp/sphinx-aaltoscicomp-branding/archive/master.zip
77
sphinx_rtd_theme_ext_color_contrast
8-
sphinx-plausible
98
sphinxext-opengraph
109

1110
# for web-apis execution

0 commit comments

Comments
 (0)