summaryrefslogtreecommitdiff
path: root/sphinx/builders
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-04-07 10:19:24 +0200
committerGeorg Brandl <georg@python.org>2013-04-07 10:19:24 +0200
commit79cdf43578766376f75c5023b7aeb63bb69899ce (patch)
tree7fbd677bb6ea2e408f46af17aa03ec1e3d7d552e /sphinx/builders
parent67a2c7eb8b74bed9a438a6eee983bfdcdb76c6a1 (diff)
downloadsphinx-79cdf43578766376f75c5023b7aeb63bb69899ce.tar.gz
epub: dont warn about .js and .xml files
Diffstat (limited to 'sphinx/builders')
-rw-r--r--sphinx/builders/epub.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sphinx/builders/epub.py b/sphinx/builders/epub.py
index 6f8d9dae..32bf17b7 100644
--- a/sphinx/builders/epub.py
+++ b/sphinx/builders/epub.py
@@ -471,7 +471,10 @@ class EpubBuilder(StandaloneHTMLBuilder):
continue
ext = path.splitext(filename)[-1]
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
projectfiles.append(_file_template % {
'href': self.esc(filename),