summaryrefslogtreecommitdiff
path: root/CustomTarget_html.mk
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2023-09-25 13:55:57 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2023-09-26 09:05:22 +0200
commit0c24f409c31e4ca8a85b6a1486e2c6eaf26942d6 (patch)
tree052841cb47953aa697e9a379c0c6ac5ef61f4913 /CustomTarget_html.mk
parent491f223b3e7a1b272d3050fbaa84be897ef45c2d (diff)
tdf#157360 Local help should not phone home
+ Remove call to matomo TDF server instance when help is local + Keep when Help is online. + refactor javascript Change-Id: I285b426531c91ff558c01798f803bf3f89720b1f Reviewed-on: https://gerrit.libreoffice.org/c/help/+/157255 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'CustomTarget_html.mk')
-rw-r--r--CustomTarget_html.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/CustomTarget_html.mk b/CustomTarget_html.mk
index e73ea160e0..ac3f21956a 100644
--- a/CustomTarget_html.mk
+++ b/CustomTarget_html.mk
@@ -27,6 +27,7 @@ $(eval $(call gb_CustomTarget_register_targets,helpcontent2/help3xsl,\
languages.js \
default.css \
help2.js \
+ $(if $(HELP_ONLINE),tdf_matomo.js) \
$(foreach lang,$(gb_HELP_LANGS),\
$(lang)/bookmarks.js \
$(lang)/contents.js \
@@ -331,4 +332,9 @@ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/help2.js : \
$(BUILDDIR)/config_host.mk
sed -e "s/%PRODUCTNAME/$(gb_PRODUCTNAME_JS)/g" $< > $@
+$(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/tdf_matomo.js : \
+ $(SRCDIR)/helpcontent2/help3xsl/tdf_matomo.js
+ mkdir -p $(dir $@)
+ cp $(SRCDIR)/helpcontent2/help3xsl/tdf_matomo.js $@
+
# vim: set noet sw=4 ts=4: