Skip to content

Commit

Permalink
Migrated to Plausible.io (from Google Analytics) for vpype.readthedoc…
Browse files Browse the repository at this point in the history
…s.io (#546)
  • Loading branch information
abey79 authored Oct 8, 2022
1 parent 521bdd1 commit e3a8787
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Release date: UNRELEASED
### Other changes

* [Poetry](https://python-poetry.org) 1.2 or later is not required (developer only) (#541)
* A `justfile` is now provided for most common operations (install, build the documentation, etc.) (#541)
* A `justfile` is now provided for most common operations (install, build the documentation, etc.) (#541)
* Migrated to [Plausible.io](https://plausible.io) (from Google Analytics) for [vpype.readthedocs.io](https://vpype.readthedocs.io) (#546)


## 1.11
Expand Down
7 changes: 7 additions & 0 deletions docs/_templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "!base.html" %}
{% block extrahead %}
{% if enable_plausible %}
<script defer data-domain="vpype.readthedocs.io" data-api="https://sta.abeyeler.workers.dev/sta/event" src="https://sta.abeyeler.workers.dev/sta/script.js"></script>
{% endif %}
{{ super() }}
{% endblock %}
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@
"""


# -- Plausible support
ENABLE_PLAUSIBLE = os.environ.get("READTHEDOCS_VERSION_TYPE", "") in ["branch", "tag"]
html_context = {"enable_plausible": ENABLE_PLAUSIBLE}


# noinspection PyUnusedLocal
def autodoc_skip_member(app, what, name, obj, skip, options):
# noinspection PyBroadException
Expand Down

0 comments on commit e3a8787

Please sign in to comment.