From 60d6bb11a137a60a95f6414b5f4458f0a207ae2c Mon Sep 17 00:00:00 2001 From: Stefan Binder Date: Fri, 1 Mar 2024 07:54:10 +0100 Subject: [PATCH 1/3] Docs: Add privacy-friendly web analytics with plausible --- doc/conf.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index 4240cf77e..24c2da9a0 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -159,6 +159,12 @@ ], "header_links_before_dropdown": 6, "announcement": """This website is for version 5. You can find the documentation for version 4 here.""", + "analytics": { + "plausible_analytics_domain": "altair-viz.github.io", + "plausible_analytics_url": ( + "https://views.scientific-python.org/js/script.js" + ), + }, } html_context = {"default_mode": "light"} From e4c392e69e002c1dd193b4c09b0d4db46d72d3fb Mon Sep 17 00:00:00 2001 From: Stefan Binder Date: Fri, 1 Mar 2024 08:08:38 +0100 Subject: [PATCH 2/3] Add note in NOTES_FOR_MAINTAINERS.md --- NOTES_FOR_MAINTAINERS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NOTES_FOR_MAINTAINERS.md b/NOTES_FOR_MAINTAINERS.md index 66b1c7ce2..19f88a955 100644 --- a/NOTES_FOR_MAINTAINERS.md +++ b/NOTES_FOR_MAINTAINERS.md @@ -73,3 +73,7 @@ with the new minimum required version of vl-convert. To cut a new release of Altair, follow the steps outlined in [RELEASING.md](RELEASING.md). + +## Web analytics +We use the privacy-friendly [plausible.io](https://plausible.io/) for tracking usage statistics of our documentation. +It is hosted on [https://views.scientific-python.org](https://views.scientific-python.org). To view the stats, you need an account. Ask another maintainer to invite you. \ No newline at end of file From bbc0ed14cfb022f5e3f9c01d08fd13f4fa38dcc3 Mon Sep 17 00:00:00 2001 From: Stefan Binder Date: Fri, 1 Mar 2024 11:36:40 +0100 Subject: [PATCH 3/3] Reformat --- doc/conf.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 24c2da9a0..ad177dafe 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -161,9 +161,7 @@ "announcement": """This website is for version 5. You can find the documentation for version 4 here.""", "analytics": { "plausible_analytics_domain": "altair-viz.github.io", - "plausible_analytics_url": ( - "https://views.scientific-python.org/js/script.js" - ), + "plausible_analytics_url": ("https://views.scientific-python.org/js/script.js"), }, }