From f60110107c9a7119dfb2f8f4f17cf39b056644b0 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Thu, 12 Dec 2024 15:55:59 -0800 Subject: [PATCH] docs: ganalytics in api ref (#28697) --- docs/api_reference/conf.py | 3 +++ docs/api_reference/requirements.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/docs/api_reference/conf.py b/docs/api_reference/conf.py index acc77ab2aa6..b6a0464cb8f 100644 --- a/docs/api_reference/conf.py +++ b/docs/api_reference/conf.py @@ -128,6 +128,7 @@ extensions = [ "_extensions.gallery_directive", "sphinx_design", "sphinx_copybutton", + "sphinxcontrib.googleanalytics", ] source_suffix = [".rst", ".md"] @@ -267,6 +268,8 @@ html_show_sourcelink = False # Set canonical URL from the Read the Docs Domain html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") +googleanalytics_id = "G-9B66JQQH2F" + # Tell Jinja2 templates the build is running on Read the Docs if os.environ.get("READTHEDOCS", "") == "True": html_context["READTHEDOCS"] = True diff --git a/docs/api_reference/requirements.txt b/docs/api_reference/requirements.txt index ea310541ff4..b59b8d43722 100644 --- a/docs/api_reference/requirements.txt +++ b/docs/api_reference/requirements.txt @@ -9,3 +9,4 @@ pyyaml sphinx-design sphinx-copybutton beautifulsoup4 +sphinxcontrib-googleanalytics