]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
css updates to better work with RTD badge
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Nov 2013 01:36:35 +0000 (20:36 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Nov 2013 01:37:05 +0000 (20:37 -0500)
doc/build/templates/layout.mako
doc/build/templates/static_base.mako

index 50f1d5de6548bd8e204e30f3d52a7ba79a1260b8..a879fa481972b3c906026d5c7603127cd19ff880 100644 (file)
@@ -2,8 +2,14 @@
 
 <%!
     local_script_files = []
+
+    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
@@ -38,12 +44,12 @@ withsidebar = bool(toc) and current_page_name != 'index'
 
 <div id="docs-container">
 
+
 <%block name="headers">
+
     ${parent.headers()}
 
     <!-- begin layout.mako headers -->
-    <link rel="stylesheet" href="${pathto('_static/pygments.css', 1)}" type="text/css" />
-    <link rel="stylesheet" href="${pathto('_static/docs.css', 1)}" type="text/css" />
 
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
index 40bf1c68ff176c999f7442b48c7bf6ce784abc57..9eb5ec0463dd40c0a2dff545cf0f0a6f28cf853e 100644 (file)
@@ -9,6 +9,15 @@
             <%block name="head_title">
             </%block>
         </title>
+
+        <%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>