On Wed, Dec 09, 2009 at 09:23:10PM +0000, Guenter Milde wrote:
> On 2009-12-08, Nathan Huesken wrote:
> > Hi,
> 
> >  I want to replace every occurence of |local| with a hyperlink to a
> >  local file (.../local.html).
> 
> >  But with .. |local| replace:: __file://../local.html sphinx complains
> >  about mailformated hyperlink ...
> 
> That is an anonymous target.
> 
> >  What is the best way to do it?
> 
> Did you try already::
> 
>  .. |local| replace:: `<../local.html>`_

I did, I get:
(ERROR/3) Substitution definition contains illegal element

>  
> or consulting the Docutils docs?

Yeah. I did not know that local links should start with plain nothing.
The solution:

in the text: local_

then
.. _local: ../local.html


Wonderful,
Thanks!

> 
> Günter
> 
> --
> 

--

You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.


Reply via email to