Skip to content

Commit

Permalink
RTD: Fix GA Integration
Browse files Browse the repository at this point in the history
GA was dropped from RTD in early Oct, 2024. This adds it again.
  • Loading branch information
ax3l committed Feb 6, 2025
1 parent e6628c3 commit d5b9278
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ sphinx>=5.3,<7.2
sphinx-copybutton
sphinx-design
sphinx_rtd_theme>=1.1.1
sphinxcontrib-googleanalytics
sphinxcontrib-svg2pdfconverter
sphinxcontrib.programoutput
5 changes: 5 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,18 @@
'breathe',
'sphinx_copybutton',
'sphinx_design',
'sphinxcontrib.googleanalytics',
'sphinxcontrib.programoutput',
'sphinxcontrib.rsvgconverter',
'matplotlib.sphinxext.plot_directive']

if not on_rtd:
extensions.append('sphinx.ext.githubpages')

# Google Analytics
googleanalytics_id = "G-3P1ZT3SQQ5"
googleanalytics_enabled = True

# breathe config
breathe_projects = {'openPMD-api': '../xml'}
breathe_default_project = 'openPMD-api'
Expand Down

0 comments on commit d5b9278

Please sign in to comment.