diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-11 20:20:11 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-11 20:20:11 -0500 |
commit | 1bdc2c441d6b5cf43377a0d53191ce4b98302144 (patch) | |
tree | 8febfa4df7429f0edce9969c9fb17f42b33a97d7 | |
parent | 97e5f8e7d764bdd79a7399899880a55b8b1fdfd5 (diff) | |
download | sqlalchemy-1bdc2c441d6b5cf43377a0d53191ce4b98302144.tar.gz |
use an explcit css block
-rw-r--r-- | doc/build/templates/layout.mako | 16 | ||||
-rw-r--r-- | 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 cbfafccf2..8ba9362e2 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' <div id="docs-container"> +<%block name="css"> + <!-- begin iterate through SQLA + sphinx environment css_files --> + % for cssfile in 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"> + + ${parent.headers()} <!-- begin layout.mako headers --> diff --git a/doc/build/templates/static_base.mako b/doc/build/templates/static_base.mako index 40bf1c68f..a8ec2329f 100644 --- a/doc/build/templates/static_base.mako +++ b/doc/build/templates/static_base.mako @@ -9,6 +9,7 @@ <%block name="head_title"> </%block> </title> + <%block name="css"/> <%block name="headers"/> </head> <body> |