summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-04-15 12:17:28 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-04-15 12:17:28 +0300
commit9f5b6eaa8feed92b4dcb0e4dc90f70a46c401e21 (patch)
tree661cdf4f4f3a6c3d569fbb01cb05c0b75c19220e
parentefd6ea180ad96a82ee8b0cc38582a9d505e794fb (diff)
downloadvyos-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>
-rw-r--r--docs/conf.py10
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