From 5d27d96fe67311eb57b0bf37d0d458f8c9d91168 Mon Sep 17 00:00:00 2001 From: maximlt Date: Fri, 22 Dec 2023 13:39:49 +0100 Subject: [PATCH] Replace Google Analytics with GoatCounter --- doc/conf.py | 8 ++++++-- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 5f4061c4..35d35e0c 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -48,17 +48,21 @@ "copyright", "last-updated", ], - "analytics": {"google_analytics_id": 'G-KD5GGLCB54'} } extensions += [ # noqa 'sphinx_copybutton', 'sphinx.ext.napoleon', 'sphinx.ext.autosummary', - 'sphinx_remove_toctrees' + 'sphinx_remove_toctrees', + 'nbsite.analytics', ] remove_from_toctrees = ["reference/param/generated/*"] +nbsite_analytics = { + 'goatcounter_holoviz': True, +} + # Override the Sphinx default title that appends `documentation` html_title = f'{project} v{version}' # Format of the last updated section in the footer diff --git a/pyproject.toml b/pyproject.toml index 22a47fca..e8302c94 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ examples = [ ] doc = [ "param[examples]", - "nbsite ==0.8.2", + "nbsite ==0.8.4", "sphinx-remove-toctrees", ] tests = [