Skip to content

Commit 53ed7f8

Browse files
authored
Merge pull request #76 from ThePorgs/dev
Add GA extension
2 parents a752a67 + f0dd69d commit 53ed7f8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ myst_parser
22
sphinx_rtd_theme
33
sphinx-tabs
44
sphinx-copybutton
5-
sphinxcontrib-jquery
5+
sphinxcontrib-jquery
6+
sphinxcontrib-googleanalytics

source/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
extensions = ['myst_parser',
1919
'sphinx_tabs.tabs',
2020
'sphinx_copybutton',
21-
"sphinxcontrib.jquery"]
21+
"sphinxcontrib.jquery",
22+
'sphinxcontrib.googleanalytics']
2223

2324
templates_path = ['_templates']
2425
exclude_patterns = []
@@ -36,5 +37,8 @@
3637
# Tabs options
3738
sphinx_tabs_disable_tab_closing = True
3839

40+
googleanalytics_id = "G-5TVGLW8S8T"
41+
googleanalytics_enabled = True
42+
3943
def setup(app):
4044
app.add_css_file("css/custom.css")

0 commit comments

Comments
 (0)