]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
use an explcit css block
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Nov 2013 01:20:11 +0000 (20:20 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Nov 2013 01:20:11 +0000 (20:20 -0500)
doc/build/templates/layout.mako
doc/build/templates/static_base.mako

index cbfafccf2c9128bde2b6b939943ad1e5eb891f07..8ba9362e2eb9868c6e55640068623fc0ab438add 100644 (file)
@@ -2,14 +2,14 @@
 
 <%!
     local_script_files = []
-%>
-<%
-    css_files[:0] = [
+
+    default_css_files = [
         '_static/pygments.css',
         '_static/docs.css',
     ]
 %>
 
+
 <%doc>
     Structural elements are all prefixed with "docs-"
     to prevent conflicts when the structure is integrated into the
@@ -44,7 +44,17 @@ withsidebar = bool(toc) and current_page_name != 'index'
 
 <div id="docs-container">
 
+<%block name="css">
+    <!-- begin iterate through SQLA + sphinx environment css_files -->
+    % for cssfile in default_css_files + css_files:
+        <link rel="stylesheet" href="${pathto(cssfile, 1)}" type="text/css" />
+    % endfor
+    <!-- end iterate through SQLA + sphinx environment css_files -->
+</%block>
+
 <%block name="headers">
+
+
     ${parent.headers()}
 
     <!-- begin layout.mako headers -->
index 40bf1c68ff176c999f7442b48c7bf6ce784abc57..a8ec2329febf27b149ccf3178095cf36198d0bfa 100644 (file)
@@ -9,6 +9,7 @@
             <%block name="head_title">
             </%block>
         </title>
+        <%block name="css"/>
         <%block name="headers"/>
     </head>
     <body>