Skip to content

Commit 05ba07d

Browse files
author
Sergey Maydanov
committed
Enable Google Analytics
1 parent 10a583c commit 05ba07d

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/generate-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
if: ${{ !github.event.pull_request || github.event.action != 'closed' }}
5050
shell: bash -l {0}
5151
run: |
52-
pip install numpy cython setuptools scikit-build cmake sphinx sphinx_rtd_theme pydot graphviz sphinxcontrib-programoutput
52+
pip install numpy cython setuptools scikit-build cmake sphinx sphinx_rtd_theme pydot graphviz sphinxcontrib-programoutput sphinxcontrib-googleanalytics
5353
- name: Checkout repo
5454
uses: actions/checkout@v3
5555
with:

docs/conf.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,12 @@ extensions = [
6161
"sphinx.ext.todo",
6262
"sphinx.ext.viewcode",
6363
"sphinxcontrib.programoutput",
64+
"sphinxcontrib.googleanalytics",
6465
]
6566

67+
googleanalytics_id = 'G-7TCKS5BHYE'
68+
googleanalytics_enabled = True
69+
6670
todo_include_todos = True
6771
use_doxyrest = "@DPCTL_ENABLE_DOXYREST@"
6872

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ cython
33
setuptools
44
sphinx
55
sphinx_rtd_theme
6+
sphinxcontrib-googleanalytics
67
pydot
78
graphviz

0 commit comments

Comments
 (0)