Skip to content

Commit ee32ed1

Browse files
committed
[DEVOPS-693] configure google_analytics from env var
1 parent 4cddf28 commit ee32ed1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/source/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# For the full list of built-in configuration values, see the documentation:
44
# https://www.sphinx-doc.org/en/master/usage/configuration.html
55

6+
import os
7+
68
from datetime import datetime
79
from importlib.metadata import version
810

@@ -20,6 +22,8 @@
2022
# The short X.Y.Z version.
2123
version = Version(release).base_version
2224

25+
googleanalytics_id = os.environ.get("GOOGLE_ANALYTICS_ID")
26+
2327
# -- General configuration ---------------------------------------------------
2428
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
2529
autodoc_mock_imports = [
@@ -42,6 +46,7 @@
4246
"sphinx.ext.autosummary",
4347
"sphinx.ext.intersphinx",
4448
"sphinx.ext.todo",
49+
"sphinxcontrib.google_analytics",
4550
]
4651
nitpicky = True
4752

0 commit comments

Comments
 (0)