Commits

Mike Bayer committed 62926b5

dont mutate css_files, it just adds up

Comments (0)

Files changed (2)

doc/build/templates/base.mako

 <title><%block name="head_title">Mako Templates for Python</%block></title>
 
 <!-- begin iterate through sphinx environment css_files -->
-% for cssfile in 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 sphinx environment css_files -->

doc/build/templates/layout.mako

 ## coding: utf-8
 <%!
     local_script_files = []
-%>
-<%
-    css_files[:0] = [
+
+    default_css_files = [
         '_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