From a2abd6991d3a675c8586b0043cbd0e8def1fd324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melissa=20Weber=20Mendon=C3=A7a?= Date: Thu, 11 Jul 2024 16:30:24 -0300 Subject: [PATCH] Use plausible configuration by the PyData Sphinx Theme This lets us delete one of the templates and rely on the configuration setting from the theme. --- docs/_templates/layout.html | 5 ----- docs/conf.py | 8 +++++++- 2 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 docs/_templates/layout.html diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html deleted file mode 100644 index c9c615197..000000000 --- a/docs/_templates/layout.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "!napari-layout.html" %} -{% block extrahead %} - - {{ super() }} -{% endblock %} diff --git a/docs/conf.py b/docs/conf.py index 63504d934..c14cd43dc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -105,7 +105,7 @@ {"name": "Island Dispatch", "url": "https://napari.org/island-dispatch"}, {"name": "Community chat", "url": "https://napari.zulipchat.com"}, {"name": "workshop template", "url": "https://napari.org/napari-workshop-template"}, - ], + ], "github_url": "https://github.com/napari/napari", "navbar_start": ["navbar-logo", "navbar-project"], "navbar_end": ["version-switcher", "navbar-icon-links"], @@ -120,6 +120,12 @@ "pygment_dark_style": "napari", "announcement": "https://napari.org/dev/_static/announcement.html", "back_to_top_button": False, + "analytics": { + # The domain you'd like to use for this analytics instance + "plausible_analytics_domain": "napari.org", + # The analytics script that is served by Plausible + "plausible_analytics_url": "https://plausible.io/js/plausible.js", + }, } html_context = {