Re: Naive question about the image directive

Chris Green <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <20170123175043.GB24486@esprimo>
On Mon, Jan 23, 2017 at 04:02:59PM +0000, Roberto Alsina wrote:
>    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 [1]http://foo.bar/boo/this.html with a
>    relative URL to the image of "DSCF6584.JPG" then the image better be
>    available at [2]http://foo/bar/boo/DSCF6584.JPG or it will not work.
> 
Unfortunately my HTML doesn't reside anywhere, it's generated by
rst2html and eaten by a PHP script.  That's what I meant by it being
generated 'dynamically'.

I think basically there's no practical way to use relative URIs in my
situation, they'll have to be absolute.


-- 
Chris Green

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.