% if len(item.children) == 0:
% if paged:
- <a href="#top">back to section top</a>
+ <a href="#top" class="totoc">back to section top</a>
% else:
- <a href="#${item.get_page_root().path}">back to section top</a>
+ <a href="#${item.get_page_root().path}" class="totoc">back to section top</a>
% endif
% endif
</div>
<%def name="pagenav(item, paged, extension)">
<div class="navbanner">
- <a href="${paged and 'index' or 'documentation'}.${ extension }">Table of Contents</a>
+ <a href="${paged and 'index' or 'documentation'}.${ extension }" class="totoc">Table of Contents</a>
${prevnext(item, paged, extension)}
<h2>${item.description}</h2>
</div>
Next: ${itemlink(item=item.next, paged=paged, anchor=not paged, extension=extension)}
% endif
</div>
-</%def>
\ No newline at end of file
+</%def>
<a name="table_of_contents"></a>
<h3>Table of Contents</h3>
- <a href="#full_index">(view full table)</a>
+ <a href="#full_index" class="totoc">(view full table)</a>
<br/><br/>
${printtoc(root=toc,paged=paged, extension=extension, current=None,children=False,anchor_toplevel=False)}
<a name="full_index"></a>
<h3>Table of Contents: Full</h3>
- <a href="#table_of_contents">(view brief table)</a>
-
+ <a href="#table_of_contents" class="totoc">(view brief table)</a>
+
${printtoc(root=toc,paged=paged, extension=extension, current=None,children=True,anchor_toplevel=False)}
</div>
anchor = False
%>
<li><a style="${item is current and "font-weight:bold;" or "" }" href="${item.get_link(extension=extension,anchor=anchor, usefilename=paged) }">${item.description}</a></li>
-
+
% if children and item.children:
<li>
${printtoc(item, current=current, children=True,anchor_toplevel=True, paged=paged, extension=extension)}
background-color: #900;
}
+@media print {
+ #nav { display: none; }
+ #pagecontrol { display: none; }
+ .topnav .prevnext { display: none; }
+ .bottomnav { display: none; }
+ .totoc { display: none; }
+ .topnav ul li a { text-decoration: none; color: #000; }
+}
\ No newline at end of file