| 1 |
===================================================================================== |
| 2 |
:mod:`cloud_sptheme.ext.docfield_markup` - support ``~mod.class`` markup in docfields |
| 3 |
===================================================================================== |
| 4 |
|
| 5 |
.. module:: cloud_sptheme.ext.docfield_markup |
| 6 |
:synopsis: support ``~mod.class`` markup in docfields |
| 7 |
|
| 8 |
.. versionadded:: 1.7 |
| 9 |
|
| 10 |
Overview |
| 11 |
======== |
| 12 |
|
| 13 |
Currently, Sphinx docfields only allow full type references (e.g. ``:raises myapp.MyException:``). |
| 14 |
This extension monkeypatches Sphinx so that tilde prefixes can be used |
| 15 |
(e.g. ``:raises ~myapp.MyException:``), resulting in a proper crosslink with only |
| 16 |
the final class name being displayed (ala the various reference roles). |