mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Get the manual building
This commit is contained in:
parent
60da8900d3
commit
61b829dd4a
@ -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__
|
||||
|
@ -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
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user