broken path when parsing multiple images such foo.*

Anonymous avatarAnonymous created an issue


I'm using sphinx to generate html and latex documentation. I'm interested in using the multiple image/figure ability of sphinx:

  .. figure:: ../images/fig.*

This generates the following error : WARNING: image file not readable: images/fig.png

if I put in the full path ../images/fig.png or ../images/fig.jpg I got no problem though. Looking at the error message, it seems that the pictures are just not found when using the fig.* syntax.

Comments (3)

  1. Anonymous

    This is still broken in 1.0.3. process_images computes the correct path from srcdir, but it appears Sphinx is using the path from srcdir as the link to the image. If you're down a level, this causes the link to be broken. I think the link needs to be computed as a relative path from the page location.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.