Author: buildbot
Date: Wed Mar 26 11:13:31 2025
New Revision: 1924617

URL: http://svn.apache.org/viewvc?rev=1924617&view=rev
Log:
Automatic Site Publish by Buildbot

Modified:
    attic/site/docs/scripts/attic_filter.lua

Modified: attic/site/docs/scripts/attic_filter.lua
URL: 
http://svn.apache.org/viewvc/attic/site/docs/scripts/attic_filter.lua?rev=1924617&r1=1924616&r2=1924617&view=diff
==============================================================================
--- attic/site/docs/scripts/attic_filter.lua (original)
+++ attic/site/docs/scripts/attic_filter.lua Wed Mar 26 11:13:31 2025
@@ -1,7 +1,7 @@
 --[[
   This is an output filter for HTML files
   It adds a banner for projects that are flagged as in the attic.
-  
+
   It is invoked by the tlp vhosts if the following directory exists:
   /var/www/attic.apache.org/flagged/%{HTTP_HOST}
 
@@ -26,7 +26,7 @@
     - repeat until a suitable location is found and find a tag or other string 
that uniquely identifies it
     - add the host-specific processing to the filter along the lines of the 
existing host exceptions
 
-  Note: This filter was introduced in April 2018, so not all projects in the 
Attic use this filter. 
+  Note: This filter was introduced in April 2018, so not all projects in the 
Attic use this filter.
   Previously the project websites themselves were changed.
 ]]--
 
@@ -49,7 +49,7 @@ function output_filter(r)
 
     -- add header:
     -- special processing needed for some hosts
-    if host == 'predictionio' or host == 'eagle' or host == 'metamodel' or 
host == 'mxnet'
+    if host == 'predictionio' or host == 'eagle' or host == 'metamodel' or 
host == 'mxnet' or host == 'twill'
     then
         coroutine.yield('')
     else
@@ -60,11 +60,16 @@ function output_filter(r)
     while bucket ~= nil do
         -- special processing needed for hosts as above
         if host == 'predictionio'
-        then    
+        then
             local output = bucket:gsub('<header>', '<header>'..div, 1)
             coroutine.yield(output)
         elseif host == 'mxnet'
-        then    
+        then
+            local output = bucket:gsub('</header>', div..'</header>', 1)
+            coroutine.yield(output)
+        elseif host == 'twill'
+        then
+            -- this avoids adding the headers to Javadocs, which stop working 
if the div is added
             local output = bucket:gsub('</header>', div..'</header>', 1)
             coroutine.yield(output)
         elseif host == 'eagle'


Reply via email to