Skip to content

Commit

Permalink
Enable Google Analytics (#1320)
Browse files Browse the repository at this point in the history
* Enable Google Analytics

* Update conf.py

Fixed typo in module name

---------

Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
  • Loading branch information
samaid and antonwolfy authored Feb 28, 2023
1 parent bcbff63 commit 44e9fa9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ jobs:
channels: intel, conda-forge

- name: Install sphinx dependencies
run: conda install sphinx sphinx_rtd_theme
run: |
conda install sphinx sphinx_rtd_theme
pip install sphinxcontrib-googleanalytics
- name: Install dpnp dependencies
run: |
Expand Down
6 changes: 5 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# -- Project information -----------------------------------------------------

project = 'dpnp'
copyright = '2020-2022, Intel'
copyright = '2020-2023, Intel Corporation'
author = 'Intel'

# The short X.Y version
Expand All @@ -54,8 +54,12 @@
'sphinx.ext.napoleon',
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinxcontrib.googleanalytics',
]

googleanalytics_id = 'G-554F8VNE28'
googleanalytics_enabled = True

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down

0 comments on commit 44e9fa9

Please sign in to comment.