nixpkgs/pkgs/data/documentation/nginx-doc/exclude-google-analytics.patch
Dmitry Bogatov aa9eb4509c
nginx-doc-unstable: init at 2022-05-05
Build documentation of nginx (which is maintained separately from webserver
itself) and make it available both as "nginx-doc" attribute and as "doc" output
of "nginx" derivation.
2022-05-11 21:38:04 -04:00

30 lines
942 B
Diff

Kill google analytics from local documentation.
diff -r bb0a2fbdc886 xslt/ga.xslt
--- a/xslt/ga.xslt Mon Apr 06 11:17:11 2020 +0100
+++ b/xslt/ga.xslt Thu Apr 09 10:29:02 2020 -0400
@@ -6,23 +6,6 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template name="ga">
-
- <script>
- (function(w, d, s, l, i) {
- w[l] = w[l] || [];
- w[l].push({
- 'gtm.start': new Date().getTime(),
- event: 'gtm.js'
- });
- var f = d.getElementsByTagName(s)[0],
- j = d.createElement(s),
- dl = l != 'dataLayer' ? '&amp;l=' + l : '';
- j.async = true;
- j.src = '//www.googletagmanager.com/gtm.js?id=' + i + dl;
- f.parentNode.insertBefore(j, f);
- })(window, document, 'script', 'dataLayer', 'GTM-TPSP33');
- </script>
-
</xsl:template>
</xsl:stylesheet>