From 05ba07d0753adc801a6e46a351ef9b64e21f776c Mon Sep 17 00:00:00 2001 From: Sergey Maydanov Date: Mon, 27 Feb 2023 14:17:35 -0600 Subject: [PATCH] Enable Google Analytics --- .github/workflows/generate-docs.yml | 2 +- docs/conf.in | 4 ++++ docs/requirements.txt | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index a9c65720cf..c31c325d79 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -49,7 +49,7 @@ jobs: if: ${{ !github.event.pull_request || github.event.action != 'closed' }} shell: bash -l {0} run: | - pip install numpy cython setuptools scikit-build cmake sphinx sphinx_rtd_theme pydot graphviz sphinxcontrib-programoutput + pip install numpy cython setuptools scikit-build cmake sphinx sphinx_rtd_theme pydot graphviz sphinxcontrib-programoutput sphinxcontrib-googleanalytics - name: Checkout repo uses: actions/checkout@v3 with: diff --git a/docs/conf.in b/docs/conf.in index e23dcb4b37..b0cfa3e340 100644 --- a/docs/conf.in +++ b/docs/conf.in @@ -61,8 +61,12 @@ extensions = [ "sphinx.ext.todo", "sphinx.ext.viewcode", "sphinxcontrib.programoutput", + "sphinxcontrib.googleanalytics", ] +googleanalytics_id = 'G-7TCKS5BHYE' +googleanalytics_enabled = True + todo_include_todos = True use_doxyrest = "@DPCTL_ENABLE_DOXYREST@" diff --git a/docs/requirements.txt b/docs/requirements.txt index 6569c03c53..9ea6d4dc54 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -3,5 +3,6 @@ cython setuptools sphinx sphinx_rtd_theme +sphinxcontrib-googleanalytics pydot graphviz