Epub: Add WebP mime type

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.
This commit is contained in:
Aaron Carlisle 2022-05-10 17:35:00 -04:00 committed by GitHub
parent 1222bed88e
commit b0ae5480c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,7 @@ MEDIA_TYPES = {
'.xhtml': 'application/xhtml+xml',
'.css': 'text/css',
'.png': 'image/png',
'.webp': 'image/webp',
'.gif': 'image/gif',
'.svg': 'image/svg+xml',
'.jpg': 'image/jpeg',