diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/conf.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py index b2c871c5..eacec2c7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -200,11 +200,14 @@ texinfo_documents = [ def setup(app): # Prefer WebP for HTML output; LaTeX keeps its default (PDF/PNG/JPEG) - from sphinx.builders.html import StandaloneHTMLBuilder - StandaloneHTMLBuilder.supported_image_types = [ + webp_types = [ 'image/webp', 'image/svg+xml', 'image/png', 'image/gif', 'image/jpeg', - ]
\ No newline at end of file + ] + from sphinx.builders.html import StandaloneHTMLBuilder + StandaloneHTMLBuilder.supported_image_types = webp_types + from sphinx.builders.dirhtml import DirectoryHTMLBuilder + DirectoryHTMLBuilder.supported_image_types = webp_types
\ No newline at end of file |
