Hi Fiona, Unfortunately, Sphinx treats included document as a part of includee document. So the image path is considered as a relative path from `/master_doc/source`. AFAIK, there are no good workaround for your case.
Thanks, Takeshi KOMIYA 2018-05-10 5:10 GMT+09:00 Fiona Hanington <fionahaning...@gmail.com>: > Hi > > I am generating docs using rst/sphinx and am having a problem with images in > referenced files. > > The include directive works well to bring in rst files, but I am not getting > the images that are themselves referenced from the included files. > > My structure is like this: > > /doc_a > /source > /images > picture.jpg > file.rst > includes a figure ref: > .. figure:: images/picture.jpg > > /master_doc > /source > pointer_file.rst > and this file calls file.rst: > include:: ../../doc_a/source/file.rst > > When I build from doc_a directory, I get text + image. All good. But when I > build from the master_doc directory, where the include directive comes in, I > get only the text and the image is missing in the build. > > How can I fix this? I don't want to have to duplicate all my images in both > directories, which is the only thing that seems to work at present. > > Thanks > > Fiona > > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sphinx-users+unsubscr...@googlegroups.com. > To post to this group, send email to sphinx-users@googlegroups.com. > Visit this group at https://groups.google.com/group/sphinx-users. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users+unsubscr...@googlegroups.com. To post to this group, send email to sphinx-users@googlegroups.com. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.