Skip to content

Commit

Permalink
feat: add alternate analytics config (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
thephez authored Nov 20, 2024
1 parent 7582a34 commit 19ff321
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
'sphinx.ext.autodoc',
'sphinx_copybutton',
'sphinx_design',
'sphinxcontrib.googleanalytics',
'sphinx.ext.intersphinx',
]

Expand Down Expand Up @@ -145,5 +146,10 @@
"doc_path": "",
}

# -- Google analytics config ----------------------------------------------

googleanalytics_id = 'G-B3JNYGTPR0'
googleanalytics_enabled = True

def setup(app):
app.add_js_file('js/pydata-search-close.js')
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ myst-parser==2.0.0
pydata-sphinx-theme==0.14.4
pytz==2022.7
sphinx==7.2.6
sphinxcontrib-googleanalytics==0.4
sphinx-copybutton==0.5.2
sphinx-hoverxref==1.3.0
sphinx_design==0.5.0
Expand Down

0 comments on commit 19ff321

Please sign in to comment.