diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-04-15 12:17:28 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-04-15 12:17:28 +0300 |
| commit | 9f5b6eaa8feed92b4dcb0e4dc90f70a46c401e21 (patch) | |
| tree | 661cdf4f4f3a6c3d569fbb01cb05c0b75c19220e /docs/conf.py | |
| parent | efd6ea180ad96a82ee8b0cc38582a9d505e794fb (diff) | |
| download | vyos-documentation-9f5b6eaa8feed92b4dcb0e4dc90f70a46c401e21.tar.gz vyos-documentation-9f5b6eaa8feed92b4dcb0e4dc90f70a46c401e21.zip | |
fix: configure Sphinx to prefer WebP for HTML output
Sphinx 7.2.x does not include image/webp in the HTML builder default
supported_image_types, so wildcard references resolved to PNG. Patch
the priority list so HTML builds select WebP while LaTeX stays unaffected.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'docs/conf.py')
| -rw-r--r-- | docs/conf.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py index e87def82..b2c871c5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -199,4 +199,12 @@ texinfo_documents = [ def setup(app): - pass
\ No newline at end of file + # Prefer WebP for HTML output; LaTeX keeps its default (PDF/PNG/JPEG) + from sphinx.builders.html import StandaloneHTMLBuilder + StandaloneHTMLBuilder.supported_image_types = [ + 'image/webp', + 'image/svg+xml', + 'image/png', + 'image/gif', + 'image/jpeg', + ]
\ No newline at end of file |
