nginx-doc: update source

Upstream has migrated the repos from mercurial to github
No longer need the google analytics patch as they don't seem
to include it anymore.
This commit is contained in:
sempiternal-aurora
2026-05-18 21:56:22 +10:00
parent de16d87143
commit 80f15f204a
2 changed files with 7 additions and 36 deletions
@@ -1,29 +0,0 @@
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>
+7 -7
View File
@@ -3,7 +3,7 @@
stdenv,
libxml2,
libxslt,
fetchhg,
fetchFromGitHub,
}:
# Upstream maintains documentation (sources of https://nginx.org) in separate
@@ -14,13 +14,13 @@
# $out/bin/nginx, but we have no better options.
stdenv.mkDerivation {
pname = "nginx-doc-unstable";
version = "2022-05-05";
src = fetchhg {
url = "https://hg.nginx.org/nginx.org";
rev = "a3aee2697d4e";
sha256 = "029n4mnmjw94h01qalmjgf1c2h3h7wm798xv5knk3padxiy4m28b";
version = "0-unstable-2026-05-15";
src = fetchFromGitHub {
owner = "nginx";
repo = "nginx.org";
rev = "7884e3ae20269c6aa718dc104c0c578f797e5269";
hash = "sha256-ut2LRZg2gyGPbili7XcOH0wZ/nI3ArA2RGWJKcZTBOk=";
};
patches = [ ./exclude-google-analytics.patch ];
nativeBuildInputs = [
libxslt
libxml2