Skip to content

Commit d8672ee

Browse files
authored
add plausible analytics (#27)
* add plausible analytics * add plausible feedback buttons
1 parent 6d93b1a commit d8672ee

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ jobs:
1212
- uses: actions/setup-python@v2
1313
with:
1414
python-version: 3.x
15-
- run: pip install mkdocs-material mkdocs-git-revision-date-localized-plugin mkdocs-awesome-pages-plugin mkdocs-callouts
15+
- run: pip install mkdocs-material mkdocs-git-revision-date-localized-plugin mkdocs-awesome-pages-plugin mkdocs-callouts material-plausible-plugin
1616
- run: mkdocs gh-deploy --force

mkdocs.yml

+21
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ plugins:
3232
- awesome-pages
3333
- callouts
3434
- search
35+
- material-plausible
3536
- git-revision-date-localized:
3637
type: timeago
3738

@@ -48,6 +49,26 @@ markdown_extensions:
4849

4950
extra:
5051
github_org: https://github.com/redbrick
52+
analytics:
53+
provider: plausible
54+
domain: docs.redbrick.dcu.ie
55+
src: "https://plausible.redbrick.dcu.ie/js/script.js"
56+
feedback:
57+
title: Was this page helpful?
58+
ratings:
59+
- icon: material/emoticon-happy-outline
60+
name: This page was helpful
61+
data: good
62+
note: >-
63+
Thanks for your feedback!
64+
65+
- icon: material/emoticon-sad-outline
66+
name: This page could be improved
67+
data: bad
68+
note: >-
69+
Thanks for your feedback! Help us improve this page by
70+
<a href="https://discord.redbrick.dcu.ie" >contacting us!</a>
71+
5172
5273
extra_css:
5374
- stylesheets/extra.css

0 commit comments

Comments
 (0)