docs: ganalytics in api ref (#28697)

This commit is contained in:
Erick Friis 2024-12-12 15:55:59 -08:00 committed by GitHub
parent 28cb2cefc6
commit f60110107c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -128,6 +128,7 @@ extensions = [
"_extensions.gallery_directive", "_extensions.gallery_directive",
"sphinx_design", "sphinx_design",
"sphinx_copybutton", "sphinx_copybutton",
"sphinxcontrib.googleanalytics",
] ]
source_suffix = [".rst", ".md"] source_suffix = [".rst", ".md"]
@ -267,6 +268,8 @@ html_show_sourcelink = False
# Set canonical URL from the Read the Docs Domain # Set canonical URL from the Read the Docs Domain
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
googleanalytics_id = "G-9B66JQQH2F"
# Tell Jinja2 templates the build is running on Read the Docs # Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get("READTHEDOCS", "") == "True": if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True html_context["READTHEDOCS"] = True

View File

@ -9,3 +9,4 @@ pyyaml
sphinx-design sphinx-design
sphinx-copybutton sphinx-copybutton
beautifulsoup4 beautifulsoup4
sphinxcontrib-googleanalytics