-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 02.09.2010 12:04, schrieb Chris Withers: > Georg Brandl wrote: >> >> - From Sphinx 1.0 on, you can do this. You have to use a new-style >> intersphinx_mapping value, i.e. >> >> intersphinx_mapping = {'python': ('http://docs.python.org/dev/py3k', None)} >> >> where 'python' is an arbitrary label, and the two values in the tuple are >> those that would have been key and value for the old-style value. Then, >> use >> >> :ref:`python:label` >> >> to refer to the heading. The target document also has to be built with >> Sphinx 1.0 in order to have heading labels in its inventory. > > Cool :-) > > How can I use a similar style to refer to a target documented rather > than a target heading? > > (ie: if multiple docs at the target have the same headings in them and I > want to pick one particular one)
Nope. The target docs must have given the heading a unique label. (If you want to link to a specific HTML page with a specific anchor, the whole mechanism makes no sense anymore. Just use a regular link, or use the extlinks extension to make it a bit shorter.) Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAkx/hs0ACgkQN9GcIYhpnLANzQCfb4WghggOPTHX/VqSQkpg9qdx 3VcAn0ZJLa+Vf4IdwmpAvK65ZTcOnyIz =WE6q -----END PGP SIGNATURE----- -- 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.