mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-08-18 08:54:53 -05:00
Merge pull request #2924 from shibukawa/feature/improve-ebook-platform-compatibility
fix: #1604 epubs in iBooks don't obey font-related CSS
This commit is contained in:
@@ -11,6 +11,7 @@ Other co-maintainers:
|
|||||||
* Rob Ruana <@RobRuana>
|
* Rob Ruana <@RobRuana>
|
||||||
* Robert Lehmann <@lehmannro>
|
* Robert Lehmann <@lehmannro>
|
||||||
* Roland Meister <@rolmei>
|
* Roland Meister <@rolmei>
|
||||||
|
* Takeshi Komiya <@tk0miya>
|
||||||
|
|
||||||
Other contributors, listed alphabetically, are:
|
Other contributors, listed alphabetically, are:
|
||||||
|
|
||||||
@@ -30,7 +31,6 @@ Other contributors, listed alphabetically, are:
|
|||||||
* Martin Hans -- autodoc improvements
|
* Martin Hans -- autodoc improvements
|
||||||
* Doug Hellmann -- graphviz improvements
|
* Doug Hellmann -- graphviz improvements
|
||||||
* Timotheus Kampik - JS theme & search enhancements
|
* Timotheus Kampik - JS theme & search enhancements
|
||||||
* Takeshi Komiya -- numref feature
|
|
||||||
* Dave Kuhlman -- original LaTeX writer
|
* Dave Kuhlman -- original LaTeX writer
|
||||||
* Blaise Laflamme -- pyramid theme
|
* Blaise Laflamme -- pyramid theme
|
||||||
* Thomas Lamb -- linkcheck builder
|
* Thomas Lamb -- linkcheck builder
|
||||||
@@ -52,7 +52,7 @@ Other contributors, listed alphabetically, are:
|
|||||||
* Rob Ruana -- napoleon extension
|
* Rob Ruana -- napoleon extension
|
||||||
* Stefan Seefeld -- toctree improvements
|
* Stefan Seefeld -- toctree improvements
|
||||||
* Gregory Szorc -- performance improvements
|
* Gregory Szorc -- performance improvements
|
||||||
* Shibukawa Yoshiki -- pluggable search API and Japanese search
|
* Shibukawa Yoshiki -- pluggable search API and Japanese search, epub3 builder improvements
|
||||||
* Taku Shimizu -- epub3 builder
|
* Taku Shimizu -- epub3 builder
|
||||||
* Antonio Valentino -- qthelp builder
|
* Antonio Valentino -- qthelp builder
|
||||||
* Filip Vavera -- napoleon todo directive
|
* Filip Vavera -- napoleon todo directive
|
||||||
@@ -65,6 +65,7 @@ Other contributors, listed alphabetically, are:
|
|||||||
* Michael Wilson -- Intersphinx HTTP basic auth support
|
* Michael Wilson -- Intersphinx HTTP basic auth support
|
||||||
* Joel Wurtz -- cellspanning support in LaTeX
|
* Joel Wurtz -- cellspanning support in LaTeX
|
||||||
* Hong Xu -- svg support in imgmath extension and various bug fixes
|
* Hong Xu -- svg support in imgmath extension and various bug fixes
|
||||||
|
* Bruce Mitchener -- Minor epub improvement
|
||||||
|
|
||||||
Many thanks for all contributions!
|
Many thanks for all contributions!
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ Features added
|
|||||||
* #2851: ``sphinx.ext.math`` emits missing-reference event if equation not found
|
* #2851: ``sphinx.ext.math`` emits missing-reference event if equation not found
|
||||||
* #1210: ``eqref`` role now supports cross reference
|
* #1210: ``eqref`` role now supports cross reference
|
||||||
* #2892: Added ``-a`` (``--append-syspath``) option to ``sphinx-apidoc``
|
* #2892: Added ``-a`` (``--append-syspath``) option to ``sphinx-apidoc``
|
||||||
|
* #1604: epub3 builder: Obey font-related CSS when viewing in iBooks.
|
||||||
|
|
||||||
Bugs fixed
|
Bugs fixed
|
||||||
----------
|
----------
|
||||||
|
|||||||
@@ -53,7 +53,8 @@ NAVLIST_INDENT = ' '
|
|||||||
PACKAGE_DOC_TEMPLATE = u'''\
|
PACKAGE_DOC_TEMPLATE = u'''\
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" xml:lang="%(lang)s"
|
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" xml:lang="%(lang)s"
|
||||||
unique-identifier="%(uid)s">
|
unique-identifier="%(uid)s"
|
||||||
|
prefix="ibooks:http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/">
|
||||||
<metadata xmlns:opf="http://www.idpf.org/2007/opf"
|
<metadata xmlns:opf="http://www.idpf.org/2007/opf"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<dc:language>%(lang)s</dc:language>
|
<dc:language>%(lang)s</dc:language>
|
||||||
@@ -66,6 +67,9 @@ PACKAGE_DOC_TEMPLATE = u'''\
|
|||||||
<dc:identifier id="%(uid)s">%(id)s</dc:identifier>
|
<dc:identifier id="%(uid)s">%(id)s</dc:identifier>
|
||||||
<dc:date>%(date)s</dc:date>
|
<dc:date>%(date)s</dc:date>
|
||||||
<meta property="dcterms:modified">%(date)s</meta>
|
<meta property="dcterms:modified">%(date)s</meta>
|
||||||
|
<meta property="ibooks:version">%(version)s</meta>
|
||||||
|
<meta property="ibooks:specified-fonts">true</meta>
|
||||||
|
<meta property="ibooks:binding">true</meta>
|
||||||
</metadata>
|
</metadata>
|
||||||
<manifest>
|
<manifest>
|
||||||
<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" />
|
<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" />
|
||||||
@@ -128,6 +132,7 @@ class Epub3Builder(EpubBuilder):
|
|||||||
metadata['page_progression_direction'] = self.esc(
|
metadata['page_progression_direction'] = self.esc(
|
||||||
self.config.epub3_page_progression_direction) or 'default'
|
self.config.epub3_page_progression_direction) or 'default'
|
||||||
metadata['date'] = self.esc(datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ"))
|
metadata['date'] = self.esc(datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ"))
|
||||||
|
metadata['version'] = self.esc(self.config.version)
|
||||||
return metadata
|
return metadata
|
||||||
|
|
||||||
def new_navlist(self, node, level, has_child):
|
def new_navlist(self, node, level, has_child):
|
||||||
|
|||||||
Reference in New Issue
Block a user