diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2014-09-07 17:38:05 -0400 |
|---|---|---|
| committer | mike bayer <mike_mp@zzzcomputing.com> | 2014-09-07 17:38:05 -0400 |
| commit | 56e14e2e2829cddde16c9cceaf9560c0306fee93 (patch) | |
| tree | 2fb206add75dee8a2a2c9fb30b56d404ea3f0bc9 /doc | |
| parent | 51eff5eb7abba446247f0f12428f07ccef1e0c1a (diff) | |
| parent | a8ef876f6c30273da55c727c315f16f01ffc3abc (diff) | |
| download | sqlalchemy-56e14e2e2829cddde16c9cceaf9560c0306fee93.tar.gz | |
Merge pull request #133 from hiaselhans/doc_epub
Docs: use layout.mako only when mako_layout=='html'
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/build/Makefile | 2 | ||||
| -rw-r--r-- | doc/build/templates/layout.mako | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/build/Makefile b/doc/build/Makefile index 328fa513f..80d9796d4 100644 --- a/doc/build/Makefile +++ b/doc/build/Makefile @@ -100,7 +100,7 @@ devhelp: @echo "# devhelp" epub: - $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub + $(SPHINXBUILD) -b epub -A mako_layout=epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub @echo @echo "Build finished. The epub file is in $(BUILDDIR)/epub." diff --git a/doc/build/templates/layout.mako b/doc/build/templates/layout.mako index db4da8399..99ce9d753 100644 --- a/doc/build/templates/layout.mako +++ b/doc/build/templates/layout.mako @@ -32,6 +32,13 @@ <%inherit file="${context['base']}"/> <% + if mako_layout == 'epub': + next.body() + return +%> + + +<% withsidebar = bool(toc) and current_page_name != 'index' %> |
