Skip to content

Commit 44e9fa9

Browse files
samaidantonwolfy
andauthored
Enable Google Analytics (#1320)
* Enable Google Analytics * Update conf.py Fixed typo in module name --------- Co-authored-by: Anton <[email protected]>
1 parent bcbff63 commit 44e9fa9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ jobs:
6767
channels: intel, conda-forge
6868

6969
- name: Install sphinx dependencies
70-
run: conda install sphinx sphinx_rtd_theme
70+
run: |
71+
conda install sphinx sphinx_rtd_theme
72+
pip install sphinxcontrib-googleanalytics
7173
7274
- name: Install dpnp dependencies
7375
run: |

doc/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# -- Project information -----------------------------------------------------
2828

2929
project = 'dpnp'
30-
copyright = '2020-2022, Intel'
30+
copyright = '2020-2023, Intel Corporation'
3131
author = 'Intel'
3232

3333
# The short X.Y version
@@ -54,8 +54,12 @@
5454
'sphinx.ext.napoleon',
5555
'sphinx.ext.autodoc',
5656
'sphinx.ext.autosummary',
57+
'sphinxcontrib.googleanalytics',
5758
]
5859

60+
googleanalytics_id = 'G-554F8VNE28'
61+
googleanalytics_enabled = True
62+
5963
# Add any paths that contain templates here, relative to this directory.
6064
templates_path = ['_templates']
6165

0 commit comments

Comments
 (0)