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,6 +471,9 @@ class EpubBuilder(StandaloneHTMLBuilder):
|
||||
continue
|
||||
ext = path.splitext(filename)[-1]
|
||||
if ext not in _media_types:
|
||||
# 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
|
||||
projectfiles.append(_file_template % {
|
||||
|
Loading…
Reference in New Issue
Block a user