On 2013-03-20, J Luis wrote: >> > Yes, I have duplicate target names on purpose. I need them. Why being >> > warned about it as if I was doing something wrong?
>> Usually an explicit target is inserted to be referenced using their name. >> Duplicate target names make it impossible to use them for this purpose >> without ambiguity. What do you need these targets for? Maybe you can use >> `anonymous targets`__ or some other rst construct instead? >> __ >> http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#anonymous-hyperlinks > Sorry, but don't see how that can help on this. What I'm doing is to have a > table in one document that refers to many other different html files, and > because I don't want to create a different target for each call, I do it > this way which causes all those warnings. > +------------------------------------------------+---------------------------------------------------------------------+ >| **grdmath** `(...) <grdmath.html>`_ | Mathematical operations > on grid files | > +------------------------------------------------+---------------------------------------------------------------------+ >| **grdvolume** `(...) <grdvolume.html>`_ | Calculate volumes under > a surface within specified contour | > +------------------------------------------------+---------------------------------------------------------------------+ But this could easily be solved via anonymous links. With:: **grdmath** `(...) <grdmath.html>`__ Mathematical ... **grdvolume** `(...) <grdvolume.html>`__ Calculate ... (watch the double underscore) the warnings go away. With two trailing underscores, the reference and target are both anonymous, and the target cannot be referred to again. These are "one-off" hyperlinks. For example:: `RFC 2396 <http://www.rfc-editor.org/rfc/rfc2396.txt>`__ and `RFC 2732 <http://www.rfc-editor.org/rfc/rfc2732.txt>`__ together define the syntax of URIs. Equivalent to:: `RFC 2396`__ and `RFC 2732`__ together define the syntax of URIs. __ http://www.rfc-editor.org/rfc/rfc2396.txt __ http://www.rfc-editor.org/rfc/rfc2732.txt -- http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris Günter -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
