Skip to content

Commit 3f4c693

Browse files
committed
Docs: add google analytics
1 parent 23c82af commit 3f4c693

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/source/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323

2424
# Add any Sphinx extension module names here, as strings. They can be extensions
2525
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
26-
extensions = ["sphinx.ext.todo", "sphinx.ext.ifconfig", "sphinx.ext.mathjax"]
26+
extensions = [
27+
"sphinx.ext.todo",
28+
"sphinx.ext.ifconfig",
29+
"sphinx.ext.mathjax",
30+
"sphinxcontrib.googleanalytics",
31+
]
2732

2833
# Add any paths that contain templates here, relative to this directory.
2934
templates_path = ["_templates"]
@@ -105,6 +110,7 @@
105110
"logo_text": "R API",
106111
}
107112
html_context = {"default_mode": "light"}
113+
googleanalytics_id = "G-LEM4RDGQBY"
108114

109115
html_baseurl = "https://rampl.ampl.com/en/latest/"
110116

0 commit comments

Comments
 (0)