Skip to content

Commit 98605d0

Browse files
committed
add plausible.io integration
1 parent 1025859 commit 98605d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/conf.py

+8
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,11 @@ class TypealongDirective(_BaseCRDirective):
149149
def setup(app):
150150
for obj in DIRECTIVES:
151151
app.add_directive(obj.get_cssname(), obj)
152+
153+
import os
154+
if os.environ.get('GITHUB_REF', '') == 'refs/heads/main':
155+
html_js_files = [
156+
('https://plausible.io/js/script.js', {"data-domain": "enccs.github.io/sycl-workshop", "defer": "\
157+
defer"}),
158+
]
159+

0 commit comments

Comments
 (0)