Author: sebb Date: Wed Mar 26 11:58:32 2025 New Revision: 1924618 URL: http://svn.apache.org/viewvc?rev=1924618&view=rev Log: ATTIC-237 fix Javadocs for Twill, part 2 add banner to topNav
Modified: attic/site/xdocs/scripts/attic_filter.lua Modified: attic/site/xdocs/scripts/attic_filter.lua URL: http://svn.apache.org/viewvc/attic/site/xdocs/scripts/attic_filter.lua?rev=1924618&r1=1924617&r2=1924618&view=diff ============================================================================== --- attic/site/xdocs/scripts/attic_filter.lua (original) +++ attic/site/xdocs/scripts/attic_filter.lua Wed Mar 26 11:58:32 2025 @@ -69,8 +69,9 @@ function output_filter(r) 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) + -- Fix for Javadocs: </header> does not appear in them, and + -- topNav only appears in the Javadoc pages that can take the div without failing + local output = bucket:gsub('</header>', div..'</header>', 1):gsub('<div class="topNav">', div..'<div class="topNav">', 1) coroutine.yield(output) elseif host == 'eagle' then