diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-11 20:27:40 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-11 20:27:40 -0500 |
| commit | 48d41075fdfe3da28aa4be1cb0e52d8e3ce3db37 (patch) | |
| tree | 2e6603016c2c0944454f088ebc23a09e01096066 | |
| parent | 1bdc2c441d6b5cf43377a0d53191ce4b98302144 (diff) | |
| download | sqlalchemy-48d41075fdfe3da28aa4be1cb0e52d8e3ce3db37.tar.gz | |
move the css to the base so that the site can override
| -rw-r--r-- | doc/build/templates/layout.mako | 8 | ||||
| -rw-r--r-- | doc/build/templates/static_base.mako | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/doc/build/templates/layout.mako b/doc/build/templates/layout.mako index 8ba9362e2..a879fa481 100644 --- a/doc/build/templates/layout.mako +++ b/doc/build/templates/layout.mako @@ -44,17 +44,9 @@ 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 a8ec2329f..9eb5ec046 100644 --- a/doc/build/templates/static_base.mako +++ b/doc/build/templates/static_base.mako @@ -9,7 +9,15 @@ <%block name="head_title"> </%block> </title> - <%block name="css"/> + + <%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> |
