Hello,
I have a situation where I want to create references to particular
things that can have a long name and a short name.
And I want to be able to reference these items using their long name,
and have the link come up using it's short name (it's a simple
transformation of the long name).
For example, say I have an extensions that does
app.add_crossref_type(
directivename = "thing",
rolename = "thing",
)
and somewhere in my documentation, I say
.. thing: long-name
Then whenever I link to this place using :thing:`long-name`, I want
the link to appear as if I did :thing:`short-name <long-name`
The problem I have is I don't want to use that second syntax
everywhere (for consistency and ease).
Is there some way of specifying either when I use the directive, or by
some transformation function when I add the cross ref type, that this
can be done ?
Thankyou,
Regards,
Stephen
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.