From 44e9fa9185080a0b1e69523622b2139f4671c73e Mon Sep 17 00:00:00 2001 From: samaid <55950596+samaid@users.noreply.github.com> Date: Tue, 28 Feb 2023 02:42:18 -0600 Subject: [PATCH] Enable Google Analytics (#1320) * Enable Google Analytics * Update conf.py Fixed typo in module name --------- Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com> --- .github/workflows/build-sphinx.yml | 4 +++- doc/conf.py | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-sphinx.yml b/.github/workflows/build-sphinx.yml index 178e1835fe2..95db7b640f1 100644 --- a/.github/workflows/build-sphinx.yml +++ b/.github/workflows/build-sphinx.yml @@ -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: | diff --git a/doc/conf.py b/doc/conf.py index 999b2504bd6..532715c4e44 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -27,7 +27,7 @@ # -- Project information ----------------------------------------------------- project = 'dpnp' -copyright = '2020-2022, Intel' +copyright = '2020-2023, Intel Corporation' author = 'Intel' # The short X.Y version @@ -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']