Skip to content

Commit cf49a3c

Browse files
committed
content/conf: add plausible
1 parent 9367174 commit cf49a3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
github_version = "main"
2626
conf_py_path = "/content/" # with leading and trailing slash
2727

28+
import os
29+
if os.environ.get('GITHUB_REF', '') == 'refs/heads/'+github_version:
30+
html_js_files = [
31+
('https://plausible.cs.aalto.fi/js/script.js', {"data-domain": "coderefinery.github.io", "defer": "defer"}),
32+
]
33+
2834
# -- General configuration ---------------------------------------------------
2935

3036
# Add any Sphinx extension module names here, as strings. They can be

0 commit comments

Comments
 (0)