]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- clean up the print version of the docs a bit [ticket:745]
authorJason Kirtland <jek@discorporate.us>
Wed, 6 Feb 2008 01:32:33 +0000 (01:32 +0000)
committerJason Kirtland <jek@discorporate.us>
Wed, 6 Feb 2008 01:32:33 +0000 (01:32 +0000)
doc/build/templates/formatting.html
doc/build/templates/nav.html
doc/build/templates/toc.html
doc/docs.css

index 825f70f8e61f6b56f345dfdd53828c9002e7ab3b..d9a7aa923c34b0d91ddaaf4d07a56094b2ae042e 100644 (file)
@@ -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>
index 2438303ff7904f2674c407c829aba5f79e11d5e7..55fc5e8dcaedb0a6993ca6a073323b2249f88abe 100644 (file)
@@ -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>
index ab42afc0ed6a0a91d853165c32318acd4219d443..0d8f4ca4cac38c7a35737dca6de84cb540e48d69 100644 (file)
@@ -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)}
index 4709da5083761f6ba3b5f0add2508efaf4ffb26b..72cf4d6a8285f72e0d413db9e835663179007a8d 100644 (file)
@@ -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