Hi Michael,

2012/12/1 Michael Schlenker <[email protected]>:
> When a reference target .. _`foo`: is placed in front of some content
> that does not have an automatic label attached (e.g. in front of a ..
> note:: for example), it is not listed in the produced objects.inv file.
>
> An 'id' anchor IS produced in the created HTML file though.

Yes, 'label' in front of some content is not recorded in objects.inv
that need caption.

Internals: docutils generate <target> node from ".. _foo:" text, but
Sphinx only recognize it as 'label' when <target> node place in front
of ['section', 'figure', 'table'] [1]_ (labels that ware recognized by
Sphinx  will record to objects.inv).


> This makes it hard to use intersphinx or other tools that depend on
> the objects.inv contents, so i would consider it a bug, as targets
> that are present in the .rst file fail to work as intersphinx targets
> without good reason.

What I've seen Sphinx can not handle non-named targets(labels) for objects.inv.


.. [1] the code is here
https://bitbucket.org/birkenfeld/sphinx/src/05e046ac10f0d6044cec9e8f4e1710e82ab35542/sphinx/domains/std.py?at=default#cl-493

Best regards,
--
Takayuki SHIMIZUKAWA
http://about.me/shimizukawa

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.


Reply via email to