Hi,

I'd like to generate a reference just like the ones automatically generated 
from the :type directive. For example, if I have:

"""
:param arg:
:type arg: SomeClass
"""

This will generate a link to "SomeClass". It also automatically "resolves" 
the reference, even if SomeClass is in another package.

However, if I customize the type field like this:

"""
:param arg:
:type arg: instance of some subclass of :class:`SomeClass`
"""

Then the reference to "SomeClass" is no longer automatically resolved. If I 
use :any: instead, it resolves the reference, but the output in the 
documentation is slightly different (it puts the link in a <code> tag, 
while the automatically generated link in the first example does not, which 
makes it looks different).

Is there a way to make the reference to "SomeClass" in the second example 
act exactly like in the first example (with auto-resolve and same HTML 
output)?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to