mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
1222bed88e
commit
b0ae5480c5
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user