Merge pull request #133 from hiaselhans/doc_epub

Docs: use layout.mako only when mako_layout=='html'
This commit is contained in:
mike bayer
2014-09-07 17:38:05 -04:00
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -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."
+7
View File
@@ -31,6 +31,13 @@
<%inherit file="${context['base']}"/>
<%
if mako_layout == 'epub':
next.body()
return
%>
<%
withsidebar = bool(toc) and current_page_name != 'index'
%>