From: Roberto A. <ra...@kd...> - 2017-01-23 16:03:18
|
If you are going to use relative URLs, they need to be relative to where the HTML page resides, not to where the rst text is. So, if your page ends at http://foo.bar/boo/this.html with a relative URL to the image of "DSCF6584.JPG" then the image better be available at http://foo/bar/boo/DSCF6584.JPG or it will not work. On Mon, Jan 23, 2017 at 12:59 PM Chris Green <cl...@is...> wrote: > > > > > OK, thanks, I'll try a bit more. > > > OK, I've been trying some more! :-) > > I can get the following to work:- > > .. image:: http://esprimo/mandyFlat/DSCF6584.JPG > > > I can't get anything like this to work at all:- > > .. image:: DSCF6584.JPG > > (yes, I have copied the JPG file to the directory where the rst text is) > > > The code it generates is:- > > <img alt="DSCF6584.JPG" src="DSCF6584.JPG" /> > > which is sort of alright except that, presumably, the web server > (apache2) can't actually find the image with just that as the address. > I guess the problem is down to the fact that the page is generated > dynamically. > > -- > Chris Green > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. > |