mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update manual geenration code for sphinx 1.1
This commit is contained in:
parent
256ddda1f9
commit
a224df9dea
@ -114,7 +114,7 @@ html_short_title = 'Start'
|
||||
html_logo = 'resources/logo.png'
|
||||
|
||||
epub_author = 'Kovid Goyal'
|
||||
epub_cover = 'epub_cover.jpg'
|
||||
kovid_epub_cover = 'epub_cover.jpg'
|
||||
epub_publisher = 'Kovid Goyal'
|
||||
epub_identifier = 'http://manual.calibre-ebook.com'
|
||||
epub_scheme = 'url'
|
||||
|
@ -251,7 +251,7 @@ def template_docs(app):
|
||||
update_cli_doc('template_ref.rst', raw, info)
|
||||
|
||||
def setup(app):
|
||||
app.add_config_value('epub_cover', None, False)
|
||||
app.add_config_value('kovid_epub_cover', None, False)
|
||||
app.add_builder(EPUBHelpBuilder)
|
||||
app.connect('doctree-read', substitute)
|
||||
app.connect('builder-inited', generate_docs)
|
||||
|
@ -55,8 +55,8 @@ class EPUBHelpBuilder(EpubBuilder):
|
||||
open(opf, 'wb').write(raw)
|
||||
|
||||
def build_epub(self, outdir, *args, **kwargs):
|
||||
if self.config.epub_cover:
|
||||
self.add_cover(outdir, self.config.epub_cover)
|
||||
if self.config.kovid_epub_cover:
|
||||
self.add_cover(outdir, self.config.kovid_epub_cover)
|
||||
self.fix_duplication_bugs(outdir)
|
||||
EpubBuilder.build_epub(self, outdir, *args, **kwargs)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user