From d603972340aa352992d5b9126b9c0b82de9dab15 Mon Sep 17 00:00:00 2001 From: Rafal Malanij Date: Sun, 8 Nov 2020 01:19:07 +0100 Subject: [PATCH 1/2] Adding GA --- docs/source/_templates/layout.html | 16 ++++++++++++++++ docs/source/conf.py | 2 ++ docs/sphinx_packages.sh | 1 + 3 files changed, 19 insertions(+) create mode 100644 docs/source/_templates/layout.html diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html new file mode 100644 index 00000000..5d3fb2c7 --- /dev/null +++ b/docs/source/_templates/layout.html @@ -0,0 +1,16 @@ +{% extends "!layout.html" %} + +{% block footer %} +{{ super() }} + + + + + +{% endblock %} \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 056b1aa8..7da6121a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -210,6 +210,8 @@ # -- Extension configuration ------------------------------------------------- + + # -- Options for todo extension ---------------------------------------------- # If true, `todo` and `todoList` produce output, else they produce nothing. diff --git a/docs/sphinx_packages.sh b/docs/sphinx_packages.sh index 623f7986..ba7df09b 100755 --- a/docs/sphinx_packages.sh +++ b/docs/sphinx_packages.sh @@ -9,4 +9,5 @@ pip install -U rst2pdf #https://github.com/rst2pdf/rst2pdf/pull/770/files pip install -U sphinxcontrib-github_ribbon pip install sphinxcontrib-bibtex +#pip install sphinxcontrib.googleanalytics From d124435a7bd481b3e0de8d5605d748d068aecde8 Mon Sep 17 00:00:00 2001 From: Rafal Malanij Date: Tue, 10 Nov 2020 09:27:51 +0100 Subject: [PATCH 2/2] Adding new GA4 code --- docs/source/_templates/layout.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html index 5d3fb2c7..a7180309 100644 --- a/docs/source/_templates/layout.html +++ b/docs/source/_templates/layout.html @@ -4,13 +4,13 @@ {{ super() }} - + {% endblock %} \ No newline at end of file