Commit 902df7f
committed
Fix PDF build: render plantweb diagrams as PNG for non-HTML builders
plantweb defaults to SVG format, which pdflatex cannot include, causing
a fatal 'Unknown graphics extension: .svg' error in the LaTeX build.
Sphinx adds the builder name to 'tags' before executing conf.py, so we
can override plantweb's defaults cache to use PNG for any non-HTML
builder (latex, man, texinfo, etc.). HTML builds continue to use SVG
for crisp vector output.
https://claude.ai/code/session_014hVQ5UrK1B4N9ar4UfYpm41 parent 92e2529 commit 902df7f
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| |||
0 commit comments