mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
epub: dont warn about .js and .xml files
This commit is contained in:
parent
ff769018ca
commit
d234f3b4f3
@ -471,7 +471,10 @@ class EpubBuilder(StandaloneHTMLBuilder):
|
|||||||
continue
|
continue
|
||||||
ext = path.splitext(filename)[-1]
|
ext = path.splitext(filename)[-1]
|
||||||
if ext not in _media_types:
|
if ext not in _media_types:
|
||||||
self.warn('unknown mimetype for %s, ignoring' % filename)
|
# we always have JS and potentially OpenSearch files, don't
|
||||||
|
# always warn about them
|
||||||
|
if ext not in ('.js', '.xml'):
|
||||||
|
self.warn('unknown mimetype for %s, ignoring' % filename)
|
||||||
continue
|
continue
|
||||||
projectfiles.append(_file_template % {
|
projectfiles.append(_file_template % {
|
||||||
'href': self.esc(filename),
|
'href': self.esc(filename),
|
||||||
|
Loading…
Reference in New Issue
Block a user