aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-11-11 20:22:12 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2013-11-11 20:22:12 -0500
commit62926b5d9c3bb2d5459d8a2c78b700c33530a333 (patch)
tree281b6d2f2b6afef23d812c08907cf07c6a953272
parenta8cc1cd60c0763e660cfd524b3253400b444a877 (diff)
downloadexternal_python_mako-62926b5d9c3bb2d5459d8a2c78b700c33530a333.tar.gz
external_python_mako-62926b5d9c3bb2d5459d8a2c78b700c33530a333.tar.bz2
external_python_mako-62926b5d9c3bb2d5459d8a2c78b700c33530a333.zip
dont mutate css_files, it just adds up
-rw-r--r--doc/build/templates/base.mako2
-rw-r--r--doc/build/templates/layout.mako6
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/build/templates/base.mako b/doc/build/templates/base.mako
index aaef7f2..b075023 100644
--- a/doc/build/templates/base.mako
+++ b/doc/build/templates/base.mako
@@ -5,7 +5,7 @@
<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 -->
diff --git a/doc/build/templates/layout.mako b/doc/build/templates/layout.mako
index 60657f0..486367c 100644
--- a/doc/build/templates/layout.mako
+++ b/doc/build/templates/layout.mako
@@ -1,14 +1,14 @@
## 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