Hi,

2015年9月2日(水) 17:47 Etienne Sandré-Chardonnal <
[email protected]>:

> Dear all,
>
> I am trying to make an image work as a link to another documentation page.
>
> From the documentation, using :target: image attribute is the way to go.
>
> I have tried this:
>
> image:: /_static/mat.png
>    :target: `matref`_
>
> Then, the "materials.rst" page starts like this:
>
>
> .. _matref:
>
> Materials
> =========
>
>
> And I get the error: ERROR: Unknown target name "matref"
>

Because, link target isn't placed in same file.
When you refer label in another file, usually you can use sphinx ref role
as  :ref:`matref` . However, you can't use ref role for :target: image
option.

What is wrong, and is there another way to link an image to another
> documentation page?
>

For now, I think there is no way to achieve it.

Regards,
--
Takayuki Shimizukawa

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to