diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-11 20:36:35 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-11 20:37:21 -0500 |
commit | dafae9da479430792242d45f67515231287ca88c (patch) | |
tree | 39462cdf6f057aef8bea780be141d394ab0ff11b | |
parent | b23869c337b566db9eeb3a7d07e26ef12a60afd8 (diff) | |
download | sqlalchemy-rel_0_5.tar.gz |
css updates to better work with RTD badgerel_0_5
-rw-r--r-- | doc/build/templates/layout.mako | 10 | ||||
-rw-r--r-- | doc/build/templates/static_base.mako | 9 |
2 files changed, 17 insertions, 2 deletions
diff --git a/doc/build/templates/layout.mako b/doc/build/templates/layout.mako index edb508fa5..16eab236a 100644 --- a/doc/build/templates/layout.mako +++ b/doc/build/templates/layout.mako @@ -2,8 +2,14 @@ <%! local_script_files = [] + + 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 @@ -38,12 +44,12 @@ withsidebar = bool(toc) and current_page_name != 'index' <div id="docs-container"> + <%block name="headers"> + ${parent.headers()} <!-- begin layout.mako 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 = { diff --git a/doc/build/templates/static_base.mako b/doc/build/templates/static_base.mako index 40bf1c68f..9eb5ec046 100644 --- a/doc/build/templates/static_base.mako +++ b/doc/build/templates/static_base.mako @@ -9,6 +9,15 @@ <%block name="head_title"> </%block> </title> + + <%block name="css"> + <!-- begin iterate through SQLA + sphinx environment 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 SQLA + sphinx environment css_files --> + </%block> + <%block name="headers"/> </head> <body> |