From 660193ad4e50d062f9f912edd39705876bcef3fc Mon Sep 17 00:00:00 2001 From: Jamie Lemon Date: Wed, 13 Nov 2024 22:00:06 +0000 Subject: [PATCH] Documentation: Updates Google Analytics ID. --- docs/conf.py | 5 ++++- docs/requirements.txt | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index b9ff6ee..ca9ee32 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,7 +19,7 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. # extensions = ["sphinx.ext.autodoc", "sphinx.ext.coverage", "sphinx.ext.ifconfig"] -extensions = ['sphinx_copybutton','notfound.extension'] +extensions = ['sphinx_copybutton','notfound.extension','sphinxcontrib.googleanalytics'] # rst2pdf is not available on OpenBSD. if hasattr(os, "uname") and os.uname()[0] != "OpenBSD": extensions.append("rst2pdf.pdfbuilder") @@ -30,6 +30,9 @@ # The suffix of source filenames. source_suffix = ".rst" +# from: pip install sphinxcontrib-googleanalytics +googleanalytics_id = "G-JZTN4VTL9M" + # The encoding of source files. # source_encoding = 'utf-8-sig' diff --git a/docs/requirements.txt b/docs/requirements.txt index 008b485..cb20fd9 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -6,3 +6,4 @@ furo readthedocs-sphinx-search==0.3.2 sphinx_copybutton sphinx-notfound-page +sphinxcontrib-googleanalytics