Skip to content

Commit 9dabb9e

Browse files
authored
Use plausible configuration by the PyData Sphinx Theme (#453)
# References and relevant issues Similar to napari/island-dispatch#8 # Description This PR sets up plausible using the [PyData Sphinx Theme configuration value](https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/analytics.html#plausible-analytics) instead of using a hand-written template.
1 parent 42fcd79 commit 9dabb9e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/_templates/layout.html

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
{"name": "Island Dispatch", "url": "https://napari.org/island-dispatch"},
106106
{"name": "Community chat", "url": "https://napari.zulipchat.com"},
107107
{"name": "workshop template", "url": "https://napari.org/napari-workshop-template"},
108-
],
108+
],
109109
"github_url": "https://github.com/napari/napari",
110110
"navbar_start": ["navbar-logo", "navbar-project"],
111111
"navbar_end": ["version-switcher", "navbar-icon-links"],
@@ -120,6 +120,12 @@
120120
"pygment_dark_style": "napari",
121121
"announcement": "https://napari.org/dev/_static/announcement.html",
122122
"back_to_top_button": False,
123+
"analytics": {
124+
# The domain you'd like to use for this analytics instance
125+
"plausible_analytics_domain": "napari.org",
126+
# The analytics script that is served by Plausible
127+
"plausible_analytics_url": "https://plausible.io/js/plausible.js",
128+
},
123129
}
124130

125131
html_context = {

0 commit comments

Comments
 (0)