From d234f3b4f359c5799e1060e6429790c34a6fea13 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 7 Apr 2013 10:19:24 +0200 Subject: [PATCH] epub: dont warn about .js and .xml files --- sphinx/builders/epub.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sphinx/builders/epub.py b/sphinx/builders/epub.py index 6f8d9dae6..32bf17b77 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),