From 1bdc2c441d6b5cf43377a0d53191ce4b98302144 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 11 Nov 2013 20:20:11 -0500 Subject: [PATCH] use an explcit css block --- doc/build/templates/layout.mako | 16 +++++++++++++--- doc/build/templates/static_base.mako | 1 + 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/build/templates/layout.mako b/doc/build/templates/layout.mako index cbfafccf2c..8ba9362e2e 100644 --- a/doc/build/templates/layout.mako +++ b/doc/build/templates/layout.mako @@ -2,14 +2,14 @@ <%! local_script_files = [] -%> -<% - css_files[:0] = [ + + 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 @@ -44,7 +44,17 @@ withsidebar = bool(toc) and current_page_name != 'index'
+<%block name="css"> + + % for cssfile in default_css_files + css_files: + + % endfor + + + <%block name="headers"> + + ${parent.headers()} diff --git a/doc/build/templates/static_base.mako b/doc/build/templates/static_base.mako index 40bf1c68ff..a8ec2329fe 100644 --- a/doc/build/templates/static_base.mako +++ b/doc/build/templates/static_base.mako @@ -9,6 +9,7 @@ <%block name="head_title"> + <%block name="css"/> <%block name="headers"/> -- 2.47.3