summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-02-06 01:32:33 +0000
committerJason Kirtland <jek@discorporate.us>2008-02-06 01:32:33 +0000
commit9bc19046d16798423a0ddaa028733e8f5b8d3e90 (patch)
tree6d05d62406f2d27ec0cb874c3726ffbac398e231
parentb0991bf661964b3d1cafc4cf0ae4649e14f9b5ea (diff)
downloadsqlalchemy-9bc19046d16798423a0ddaa028733e8f5b8d3e90.tar.gz
- clean up the print version of the docs a bit [ticket:745]
-rw-r--r--doc/build/templates/formatting.html4
-rw-r--r--doc/build/templates/nav.html4
-rw-r--r--doc/build/templates/toc.html8
-rw-r--r--doc/docs.css8
4 files changed, 16 insertions, 8 deletions
diff --git a/doc/build/templates/formatting.html b/doc/build/templates/formatting.html
index 825f70f8e..d9a7aa923 100644
--- a/doc/build/templates/formatting.html
+++ b/doc/build/templates/formatting.html
@@ -36,9 +36,9 @@
% 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>
diff --git a/doc/build/templates/nav.html b/doc/build/templates/nav.html
index 2438303ff..55fc5e8dc 100644
--- a/doc/build/templates/nav.html
+++ b/doc/build/templates/nav.html
@@ -45,7 +45,7 @@
<%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>
@@ -73,4 +73,4 @@
Next: ${itemlink(item=item.next, paged=paged, anchor=not paged, extension=extension)}
% endif
</div>
-</%def> \ No newline at end of file
+</%def>
diff --git a/doc/build/templates/toc.html b/doc/build/templates/toc.html
index ab42afc0e..0d8f4ca4c 100644
--- a/doc/build/templates/toc.html
+++ b/doc/build/templates/toc.html
@@ -6,15 +6,15 @@
<a name="table_of_contents"></a>
<h3>Table of Contents</h3>
&nbsp;&nbsp;
- <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>
&nbsp;&nbsp;
- <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>
@@ -31,7 +31,7 @@
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)}
diff --git a/doc/docs.css b/doc/docs.css
index 4709da508..72cf4d6a8 100644
--- a/doc/docs.css
+++ b/doc/docs.css
@@ -198,3 +198,11 @@ h3 {
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