Commit 520d460
committed
fix(docs[aafig]): use builder target URI for image paths (dirhtml compat)
why: The aafig extension computed image paths using the raw docname
instead of the builder's target URI. With dirhtml, this produces
../_images/ instead of ../../_images/ because dirhtml outputs files
one directory deeper (page/index.html vs page.html).
what:
- Change relative_uri(docname, "_images") to
relative_uri(get_target_uri(docname), "_images")
- Matches how Sphinx itself computes image paths
(sphinx/builders/html/__init__.py:655)1 parent 6dd0024 commit 520d460
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
0 commit comments