sphinxcontrib-dotnetdomain icon indicating copy to clipboard operation
sphinxcontrib-dotnetdomain copied to clipboard

Hide "Attribute" suffix in classes

Open analogrelay opened this issue 9 years ago • 0 comments

When referencing a class with a name ending in "Attribute" using the ~ syntax, as in the example below, it would be good if the "Attribute" suffix could be stripped out of the rendered link text. This could be put behind an option/special sigil (like ~ does today) if that would be more appropriate.

For example, the following:

:dn:class:`~Microsoft.AspNetCore.Authorization.AuthorizeAttribute`

Displays like this:

AuthorizeAttribute

But it would be better if it could display like this:

Authorize

/cc @danroth27

analogrelay avatar Jun 21 '16 21:06 analogrelay