Skip to content

Commit 9367174

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

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
@@ -89,6 +89,12 @@
8989
"conf_py_path": conf_py_path,
9090
}
9191

92+
import os
93+
if os.environ.get('GITHUB_REF', '') == 'refs/heads/main':
94+
html_js_files = [
95+
('https://plausible.cs.aalto.fi/js/script.js', {"data-domain": "coderefinery.github.io", "defer": "defer"}),
96+
]
97+
9298
# Intersphinx mapping. For example, with this you can use
9399
# :py:mod:`multiprocessing` to link straight to the Python docs of that module.
94100
# List all available references:

0 commit comments

Comments
 (0)