Get the manual building

This commit is contained in:
Kovid Goyal 2019-12-12 18:00:03 +05:30
parent 60da8900d3
commit 61b829dd4a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ from functools import partial
j, d, a = os.path.join, os.path.dirname, os.path.abspath
BASE = d(a(__file__))
SPHINX_BUILD = 'sphinx-build2'
SPHINX_BUILD = 'sphinx-build'
sys.path.insert(0, d(BASE))
from setup import __appname__, __version__

View File

@ -33,7 +33,7 @@ def source_read_handler(app, docname, source):
# Sphinx does not call source_read_handle for the .. include directive
for m in reversed(tuple(include_pat.finditer(src))):
included_doc_name = m.group(1).lstrip('/')
ss = [open(included_doc_name).read().decode('utf-8')]
ss = [open(included_doc_name, 'rb').read().decode('utf-8')]
source_read_handler(app, included_doc_name.partition('.')[0], ss)
src = src[:m.start()] + ss[0] + src[m.end():]
source[0] = src

View File

@ -22,7 +22,7 @@ entry_points = {
'ebook-meta = calibre.ebooks.metadata.cli:main',
'ebook-convert = calibre.ebooks.conversion.cli:main',
'ebook-polish = calibre.ebooks.oeb.polish.main:main',
'markdown-calibre = calibre.ebooks.markdown.__main__:run',
'markdown-calibre = markdown.__main__:run',
'web2disk = calibre.web.fetch.simple:main',
'calibre-server = calibre.srv.standalone:main',
'lrf2lrs = calibre.ebooks.lrf.lrfparser:main',