From 362c3970a3f6e3e005cb93d9caeeb4d4d05878fe Mon Sep 17 00:00:00 2001 From: Henry Pinkard <7969470+henrypinkard@users.noreply.github.com> Date: Sun, 17 Nov 2024 21:50:39 -0800 Subject: [PATCH 1/2] fix analytics --- docs/requirements.txt | 3 ++- docs/source/conf.py | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index ca60667b..5dcf9d56 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -3,4 +3,5 @@ nbsphinx pygments ipykernel sphinx_rtd_theme -docstring-inheritance \ No newline at end of file +docstring-inheritance +sphinxcontrib.googleanalytics \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index e87a0a8c..db7a661f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -33,7 +33,7 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "nbsphinx"] +extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "nbsphinx", "sphinxcontrib.googleanalytics"] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] @@ -73,3 +73,12 @@ # Prevent nbsphinx from executing the notebooks nbsphinx_execute = 'never' + + +extensions = [ + # ... your other extensions ... + , +] + +googleanalytics_id = 'G-8MC4VCD0JR' # Replace with your actual GA4 measurement ID +googleanalytics_enabled = True From 25f2e69b80b71923626a31c6ff2430a24201f183 Mon Sep 17 00:00:00 2001 From: Henry Pinkard <7969470+henrypinkard@users.noreply.github.com> Date: Sun, 17 Nov 2024 21:53:33 -0800 Subject: [PATCH 2/2] fix --- docs/source/conf.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index db7a661f..991b46f9 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -75,10 +75,6 @@ nbsphinx_execute = 'never' -extensions = [ - # ... your other extensions ... - , -] googleanalytics_id = 'G-8MC4VCD0JR' # Replace with your actual GA4 measurement ID googleanalytics_enabled = True