Thank you for the useful hints/links.

Both extensions look useful for what i had in mind.

@Takayuki:
The exuberant ctags format allows some extra qualification like type of
target etc., which would allow annotation of the links with the domain
of the reference (e.g. std:label, py:mod, py:method, etc.).

The specification can be found here:
http://ctags.sourceforge.net/FORMAT

Michael


Am 30.11.2012 04:45, schrieb Takayuki Shimizukawa:
> 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.
>>
>>
> 


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