Skip to content

Commit

Permalink
Epub: Add WebP mime type
Browse files Browse the repository at this point in the history
When building docs with WebP images using the EPUB builder results in this warning:

`WARNING: unknown mimetype for _images/<image_name>.webp, ignoring`

This commit fixes this by adding the mapping for webp-files to the correct mime type.
  • Loading branch information
Blendify committed May 10, 2022
1 parent 1222bed commit b0ae548
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sphinx/builders/_epub_base.py
Expand Up @@ -56,6 +56,7 @@
'.xhtml': 'application/xhtml+xml',
'.css': 'text/css',
'.png': 'image/png',
'.webp': 'image/webp',
'.gif': 'image/gif',
'.svg': 'image/svg+xml',
'.jpg': 'image/jpeg',
Expand Down

0 comments on commit b0ae548

Please sign in to comment.