Hi all,

while experimenting a bit with adding reference targets in my rst files
and looking at the generated objects.inv and html files, i noticed the
following oddity/bug.

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.

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.

Should I file an issue for this?

I checked the objects.inv contents with the following small snippet:

import sys
from sphinx.ext import intersphinx

class DummyApp(object):
    srcdir = "."
    def warn(self, msg):
        sys.stderr.write("%s\n" % msg)

def main():
    app = DummyApp()
    uri = ""
    inv = sys.argv[1]
    inventory = intersphinx.fetch_inventory(app, uri, inv)
    for k in inventory.keys():
        print "Type: %s" % k
        for name, value in inventory[k].items():
            print "  %s -> '%s'" % (name, value[2])

if __name__ == "__main__":
    main()

Michael

-- 
Michael Schlenker
Software Architect

CONTACT Software GmbH           Tel.:   +49 (421) 20153-80
Wiener Straße 1-3               Fax:    +49 (421) 20153-41
28359 Bremen
http://www.contact.de/          E-Mail: [email protected]

Sitz der Gesellschaft: Bremen
Geschäftsführer: Karl Heinz Zachries, Ralf Holtgrefe
Eingetragen im Handelsregister des Amtsgerichts Bremen unter HRB 13215

-- 
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