]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
move the css to the base so that the site can override
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Nov 2013 01:27:40 +0000 (20:27 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Nov 2013 01:27:40 +0000 (20:27 -0500)
doc/build/templates/layout.mako
doc/build/templates/static_base.mako

index 8ba9362e2eb9868c6e55640068623fc0ab438add..a879fa481972b3c906026d5c7603127cd19ff880 100644 (file)
@@ -44,17 +44,9 @@ 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 a8ec2329febf27b149ccf3178095cf36198d0bfa..9eb5ec0463dd40c0a2dff545cf0f0a6f28cf853e 100644 (file)
@@ -9,7 +9,15 @@
             <%block name="head_title">
             </%block>
         </title>
-        <%block name="css"/>
+
+        <%block name="css">
+            <!-- begin iterate through SQLA + sphinx environment css_files -->
+            % for cssfile in self.attr.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"/>
     </head>
     <body>