You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@attic.apache.org by bu...@apache.org on 2021/06/24 11:31:16 UTC

svn commit: r1891021 - /attic/site/docs/scripts/attic_filter.lua

Author: buildbot
Date: Thu Jun 24 11:31:16 2021
New Revision: 1891021

URL: http://svn.apache.org/viewvc?rev=1891021&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=1891021&r1=1891020&r2=1891021&view=diff
==============================================================================
--- attic/site/docs/scripts/attic_filter.lua (original)
+++ attic/site/docs/scripts/attic_filter.lua Thu Jun 24 11:31:16 2021
@@ -28,8 +28,8 @@ function output_filter(r)
         <a style='%s' href="https://attic.apache.org/projects/%s.html">
         Attic page</a>.
       </div>]]):format(sty1, name, sty2, host)
-    -- special processing needed for predictionio and eagle
-    if host == 'predictionio' or host == 'eagle'
+    -- special processing needed for some hosts
+    if host == 'predictionio' or host == 'eagle' or host == 'metamodel'
     then
         coroutine.yield('')
     else
@@ -37,7 +37,7 @@ function output_filter(r)
     end
     -- spit out the actual page
     while bucket do
-        -- special processing needed for predictionio
+        -- special processing needed for hosts as above
         if host == 'predictionio'
         then    
             local output = bucket:gsub('<header>', '<header>'..div, 1)
@@ -46,6 +46,10 @@ function output_filter(r)
         then
             local output = bucket:gsub('</nav>', '</nav>'..div, 1)
             coroutine.yield(output)
+        elseif host == 'metamodel'
+        then
+            local output = bucket:gsub('</nav>', div..'</nav>', 1)
+            coroutine.yield(output)
         else
             coroutine.yield(bucket)
         end