Hi there, 2012/11/30 Jonathan Waltman <[email protected]>: > On Thu, Nov 29, 2012 at 10:34 AM, Michael Schlenker <[email protected]> wrote: >> Hi everyone, >> >> is there an easy way to get the source line/file for the references in >> an objects.inv file? > > I'm not sure if there is an easy way to do this. The objects.inv > just maps object names to URIs in the generated html file.
Indeed, inv file not have source and line information. I wrote a sample extension to generate tags file. https://gist.github.com/4173639 But I am not familiar with the ctags, the please tell me if you have suggestions for improvement. Best regards, -- Takayuki SHIMIZUKAWA http://about.me/shimizukawa 2012/11/30 Jonathan Waltman <[email protected]>: > On Thu, Nov 29, 2012 at 10:34 AM, Michael Schlenker <[email protected]> wrote: >> Hi everyone, >> >> is there an easy way to get the source line/file for the references in >> an objects.inv file? > > I'm not sure if there is an easy way to do this. The objects.inv > just maps object names to URIs in the generated html file. > > If your interested in generating a mapping of reference labels to > their source in the reST file, you might be able to use/extend > Martin Bless's sphinx extension "t3sphinx.ext.targets" [1]. > > For a mapping of object names to their location in Python source > files, the sphinx.ext.viewcode extension might be a useful starting > point. > > [1] https://groups.google.com/d/topic/sphinx-users/KangY0SgvKk/discussion > > -- > Jonathan Waltman > > -- > 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. > > -- 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.
