Commits

Mike Bayer committed de35f51

css updates to better work with RTD badge

  • Participants
  • Parent commits 1f5236c
  • Branches rel_0_8

Comments (0)

Files changed (2)

doc/build/templates/layout.mako

 
 <%!
     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
 
 <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 = {

doc/build/templates/static_base.mako

             <%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>