From 8b5db69cae7834f2cca6c2ccefc8f610b18f7b27 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Fri, 6 May 2022 15:03:06 +0000 Subject: [PATCH] [IMP] odoo_theme: allow to add plausible script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit export PLAUSIBLE_SCRIPT=https://plausible.io/js/script.js export PLAUSIBLE_DOMAIN=yourdomain.com closes odoo/documentation#1955 X-original-commit: 4c526eb02fee58352bb6c3dad9f2f9794500138c Signed-off-by: Antoine Vandevenne (anv) Signed-off-by: Jérémy Kersten --- Makefile | 2 ++ extensions/odoo_theme/layout.html | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index cccbab07d..0db73c8be 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,8 @@ SPHINXOPTS = -D project_root=$(ROOT) -D canonical_version=$(CANONICAL_VERSIO -D versions=$(VERSIONS) -D languages=$(LANGUAGES) -D language=$(CURRENT_LANG) \ -D is_remote_build=$(IS_REMOTE_BUILD) \ -A google_analytics_key=$(GOOGLE_ANALYTICS_KEY) \ + -A plausible_script=$(PLAUSIBLE_SCRIPT) \ + -A plausible_domain=$(PLAUSIBLE_DOMAIN) \ -j $(WORKERS) SOURCE_DIR = content diff --git a/extensions/odoo_theme/layout.html b/extensions/odoo_theme/layout.html index a73e17d9f..17b92a107 100644 --- a/extensions/odoo_theme/layout.html +++ b/extensions/odoo_theme/layout.html @@ -29,6 +29,9 @@ {%- endfor %} {%- endif %} {{ super() }} {# Load the scripts specified in the extensions/themes #} + {%- if plausible_script -%} + + {%- endif -%}