Skip to content

Commit

Permalink
fix the tags in genindex, add xmlns
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzeek committed Jul 16, 2012
1 parent 380b64c commit 9f58240
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
8 changes: 4 additions & 4 deletions doc/build/templates/base.mako
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html>
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<head>
Expand All @@ -20,7 +20,7 @@
<div class="toolbar">
<a href="${site_base}/">Home</a>
&nbsp; | &nbsp;
<a href="${site_base}/trac">Trac</a>
<a href="${site_base}/trac">Trac</a>
&nbsp; | &nbsp;
<a href="${site_base}/community.html">Community</a>
&nbsp; | &nbsp;
Expand All @@ -41,8 +41,8 @@
<%block name="footer">
<hr/>
<div class="copyright">Website content copyright &copy; by Michael Bayer.
All rights reserved. Mako and its documentation are licensed
<div class="copyright">Website content copyright &copy; by Michael Bayer.
All rights reserved. Mako and its documentation are licensed
under the MIT license. mike(&)zzzcomputing.com</div>
</%block>
</div>
Expand Down
35 changes: 19 additions & 16 deletions doc/build/templates/genindex.mako
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

% for i, (key, entries) in enumerate(genindexentries):
<h2 id="${key}">${key}</h2>
<table width="100%" class="indextable"><tr><td width="33%" valign="top">
<table width="100%" class="indextable genindextable"><tr><td width="33%" valign="top">
<dl>
<%
breakat = genindexcounts[i] // 2
Expand All @@ -32,30 +32,33 @@
% else:
${entryname|h}
% endif
</dt>

% if subitems:
<dd><dl>
% for subentryname, subentrylinks in subitems:
<dt><a href="${subentrylinks[0][1]}">${subentryname|h}</a>
% for j, (unknown, link) in enumerate(subentrylinks[1:]):
<a href="${link}">[${j}]</a>
% endfor
</dt>
% endfor
</dl></dd>
% endif
<%
<dd><dl>
% for subentryname, subentrylinks in subitems:
<dt><a href="${subentrylinks[0][1]}">${subentryname|h}</a>
% for j, (unknown, link) in enumerate(subentrylinks[1:]):
<a href="${link}">[${j}]</a>
% endfor
</dt>
% endfor
</dl></dd>
% endif

<%
numitems = numitems + 1 + len(subitems)
%>
% if numcols <2 and numitems > breakat:
%>
% if numcols <2 and numitems > breakat:
<%
numcols = numcols + 1
%>
</dl></td><td width="33%" valign="top"><dl>
% endif
% endif

% endfor
</dl></td></tr></table>
<dt></dt></dl>
</td></tr></table>
% endfor

<%def name="sidebarrel()">
Expand Down

0 comments on commit 9f58240

Please sign in to comment.