changeset 3041:80cc4e6d3d6d

Free nginx: removed marketing banner.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 14 Feb 2024 20:05:45 +0300
parents b55264db8d9f
children 19e4897acb84
files GNUmakefile xsls/article.xsls xsls/banner.xsls xsls/body.xsls xsls/news.xsls xsls/style.xsls
diffstat 6 files changed, 2 insertions(+), 54 deletions(-) [+]
line wrap: on
line diff
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,7 +1,6 @@
 
 OUT =		libxslt
 TEXT =		text
-BANNER =	banner
 ZIP =		gzip
 NGINX_ORG =	/data/www/nginx.org
 SHELL =		./umasked.sh
@@ -46,7 +45,6 @@ COMMON_DEPS =								\
 		xslt/style.xslt						\
 		xslt/body.xslt						\
 		xslt/menu.xslt						\
-		xslt/banner.xslt					\
 		xslt/content.xslt					\
 
 ARTICLE_DEPS =								\
@@ -314,15 +312,14 @@ gzip:	rsync_gzip
 	$(MAKE) do_gzip
 
 rsync_gzip:
-	$(CHMOD) $(OUT) $(TEXT) $(BANNER)
-	$(RSYNC) --delete --exclude='*.gz' $(OUT)/ $(TEXT)/ $(BANNER) $(ZIP)/
+	$(CHMOD) $(OUT) $(TEXT)
+	$(RSYNC) --delete --exclude='*.gz' $(OUT)/ $(TEXT)/ $(ZIP)/
 
 do_gzip:	$(addsuffix .gz, $(wildcard $(ZIP)/*.html))		\
 		$(addsuffix .gz,					\
 			$(foreach lang, $(LANGS),			\
 			$(foreach dir, . docs docs/dev docs/faq docs/http docs/mail docs/njs docs/stream, \
 			$(wildcard $(ZIP)/$(lang)/$(dir)/*.html))))	\
-		$(addsuffix .gz, $(wildcard $(ZIP)/$(BANNER)/*.html))	\
 		$(ZIP)/index.rss.gz					\
 		$(ZIP)/LICENSE.gz					\
 		$(ZIP)/en/CHANGES.gz					\
--- a/xsls/article.xsls
+++ b/xsls/article.xsls
@@ -26,7 +26,6 @@ X:include href = "link.xslt";
 X:include href = "style.xslt";
 X:include href = "body.xslt";
 X:include href = "menu.xslt";
-X:include href = "banner.xslt";
 X:include href = "content.xslt";
 X:include href = "books.xslt";
 X:include href = "directive.xslt";
@@ -49,8 +48,6 @@ X:template = "/article | /module" {
 
     !style (lang="@lang")
 
-    !banner ()
-
     </head>
 
     !body (lang="@lang")
deleted file mode 100644
--- a/xsls/banner.xsls
+++ /dev/null
@@ -1,34 +0,0 @@
-<!--
-  Copyright (C) Nginx, Inc.
-  -->
-
-X:stylesheet {
-
-X:var BANNER = "'/banner/banner.html'";
-
-X:template banner_link () {
-    X:if "substring-after($DIRNAME, '/')" {
-        !{ concat($ROOT, $BANNER) }
-    } else {
-        !{ substring-after($BANNER, '/') }
-    }
-}
-
-X:template banner () {
-
-    <script>
-        window.addEventListener("load", function(e) \{
-            fetch("!banner_link ()")
-                .then((response) => response.text())
-                .then((resp) => \{
-                    document.getElementById("banner").innerHTML = resp;
-                \})
-                .catch((error) => \{
-                    console.warn(error);
-                \});
-        \});
-    </script>
-
-}
-
-}
--- a/xsls/body.xsls
+++ b/xsls/body.xsls
@@ -17,9 +17,6 @@ X:template body (lang) {
 
     <body>
 
-    <div id="banner">
-    </div>
-
     <div id="main">
     <div id="menu">
         <h1>
--- a/xsls/news.xsls
+++ b/xsls/news.xsls
@@ -27,7 +27,6 @@ X:include href = "link.xslt";
 X:include href = "style.xslt";
 X:include href = "body.xslt";
 X:include href = "menu.xslt";
-X:include href = "banner.xslt";
 X:include href = "content.xslt";
 
 
@@ -41,8 +40,6 @@ X:template = "/news" {
 
     !style (lang="@lang")
 
-    !banner ()
-
     </head>
 
     !body (lang="@lang")
--- a/xsls/style.xsls
+++ b/xsls/style.xsls
@@ -15,12 +15,6 @@ X:template style (lang) {
                             text-align:     center;
                             margin:         0;
                             padding:        0; }
-        #banner           { background:     black;
-                            color:          #F2F2F2;
-                            line-height:    1.2em;
-                            padding:        .3em 0;
-                            box-shadow:     0 5px 10px black; }
-        #banner a         { color:          #00B140; }
         #main             { text-align:     left;
                             margin:         0 auto;
                             min-width:      32em;