summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/build/Makefile2
-rw-r--r--doc/build/templates/layout.mako7
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'
%>