diff --git a/src/calibre/ebooks/epub/output.py b/src/calibre/ebooks/epub/output.py index c03d103e3a..c84c687dcf 100644 --- a/src/calibre/ebooks/epub/output.py +++ b/src/calibre/ebooks/epub/output.py @@ -107,7 +107,7 @@ class EPUBOutput(OutputFormatPlugin): ''' TITLEPAGE = '''\ - + %(title)s + + +

%(title)s

+

%(version)s

+
+ +
+

%(author)s

+ + + diff --git a/upload.py b/upload.py index 0ce3d1ef4c..0bf7deb952 100644 --- a/upload.py +++ b/upload.py @@ -123,8 +123,13 @@ class manual(OptionlessCommand): os.makedirs(d) if not os.path.exists('.build'+os.sep+'html'): os.makedirs('.build'+os.sep+'html') - check_call(['sphinx-build', '-b', 'custom', '-d', + check_call(['sphinx-build', '-b', 'custom', '-d', '-t', 'online', '.build/doctrees', '.', '.build/html']) + check_call(['sphinx-build', '-b', 'epub', '-d', + '.build/doctrees', '.', '.build/epub']) + j = os.path.join + shutil.copyfile(j('.build', 'epub', 'calibre.epub'), j('.build', + 'html', 'calibre.epub')) finally: os.chdir(cwd)