Commits

Mike Bayer  committed ef10c1d

- add webfont RTD isn't giving us yet
- try to get all our CSS in one place and above RTD so we get all their styles...

  • Participants
  • Parent commits dcfaf5f

Comments (0)

Files changed (3)

File doc/build/templates/base.mako

 <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
 <head>
 <title><%block name="head_title">Mako Templates for Python</%block></title>
+
+<!-- begin iterate through sphinx environment css_files -->
+% for cssfile in css_files:
+    <link rel="stylesheet" href="${pathto(cssfile, 1)}" type="text/css" />
+% endfor
+<!-- end iterate through sphinx environment css_files -->
+
 <%block name="headers">
 </%block>
-<link rel="stylesheet" href="${pathto('_static/site.css', 1)}"></link>
 
 
 </head>

File doc/build/templates/layout.mako

 <%!
     local_script_files = []
 %>
+<%
+    css_files[0:] = [
+        '_static/pygments.css',
+        '_static/docs.css',
+        '_static/site.css'
+    ]
+%>
 <%doc>
     Structural elements are all prefixed with "docs-"
     to prevent conflicts when the structure is integrated into the
 <%block name="headers">
     ${parent.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 = {
           URL_ROOT:    '${pathto("", 1)}',

File doc/build/templates/rtd_layout.mako

 
 <%block name="headers">
 
-<!-- begin iterate through sphinx environment css_files -->
-% for cssfile in css_files:
-    <link rel="stylesheet" href="${pathto(cssfile, 1)}" type="text/css" />
-% endfor
-<!-- end iterate through sphinx environment css_files -->
+<link href='http://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700' rel='stylesheet' type='text/css'>
 
 <!-- RTD <head> via mako adapter -->
 <script type="text/javascript">