From 40e28076045e2cae2a01020ad85f37d7c641786a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 Jul 2014 16:31:46 +0530 Subject: [PATCH] ... --- setup/publish.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/publish.py b/setup/publish.py index 37ee0db7a2..2efe91c458 100644 --- a/setup/publish.py +++ b/setup/publish.py @@ -84,6 +84,8 @@ class Manual(Command): subprocess.check_call(['sphinx-build2', '-b', 'html', '-t', 'online', '-d', '.build/doctrees', '.', '.build/html']) with self: + # This is needed as without it the ToC is doubled in EPUB and + # the both the ToC and the content is doubled in PDF subprocess.check_call(['sphinx-build', '-b', 'myepub', '-d', '.build/doctrees', '.', '.build/epub']) subprocess.check_call(['sphinx-build', '-b', 'mylatex', '-d',