Skip to content

Commit

Permalink
plausible directly (no extension)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdarst committed Aug 24, 2023
1 parent 104b5dc commit 2a358ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions content/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
'sphinx_aaltoscicomp_branding',
'sphinx_plausible',
'sphinxext.opengraph',
]
myst_enable_extensions = ['colon_fence']
Expand All @@ -52,13 +51,14 @@
ogp_image_alt = 'Python for Scientific Computing course logo with date of 22-25/11/2022, twitch.tv/coderefinery, and partner logos'

import os
plausible_domain = 'aaltoscicomp.github.io/python-for-scicomp'
plausible_script = 'https://plausible.cs.aalto.fi/js/plausible.js'
plausible_enabled = (
if (
'GITHUB_ACTION' in os.environ
and os.environ.get('GITHUB_REPOSITORY', '').lower() == 'aaltoscicomp/python-for-scicomp'
and os.environ.get('GITHUB_REF') == 'refs/heads/master'
)
):
html_js_files = [
('https://plausible.cs.aalto.fi/js/script.js', {"data-domain": "aaltoscicomp.github.io/python-for-scicomp", "defer": "defer"}),
]


# Add any paths that contain templates here, relative to this directory.
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ sphinx-copybutton
sphinx-lesson
https://github.com/aaltoscicomp/sphinx-aaltoscicomp-branding/archive/master.zip
sphinx_rtd_theme_ext_color_contrast
sphinx-plausible
sphinxext-opengraph

# for web-apis execution
Expand Down

0 comments on commit 2a358ec

Please sign in to comment.