Commits

Georg Brandl committed 9c0000e

epub: dont warn about .js and .xml files

  • Participants
  • Parent commits 843f9e5

Comments (0)

Files changed (1)

File sphinx/builders/epub.py

                     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),