class SphinxRole:
Known subclasses: sphinx.util.docutils.ReferenceRole
, sphinx.ext.autosummary.AutoLink
, sphinx.ext.intersphinx.IntersphinxRole
, sphinx.roles.Abbreviation
, sphinx.roles.EmphasizedLiteral
, sphinx.roles.GUILabel
A base class for Sphinx roles.
This class provides helper methods for Sphinx roles.
Note
The subclasses of this class might not work with docutils. This class is strongly coupled with Sphinx.
Method | get_location |
Get current location info for logging. |
Instance Variable | content |
Undocumented |
Instance Variable | inliner |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | rawtext |
Undocumented |
Instance Variable | text |
Undocumented |
Property | config |
Reference to the .Config object. |
Property | env |
Reference to the .BuildEnvironment object. |
Method | __call__ |
Undocumented |
Method | get_source_info |
Undocumented |
Method | run |
Undocumented |
Method | set_source_info |
Undocumented |
sphinx.util.docutils.ReferenceRole
Undocumented
Parameters | |
name:str | Undocumented |
rawtext:str | Undocumented |
text:str | Undocumented |
lineno:int | Undocumented |
inliner:Inliner | Undocumented |
options:Dict | Undocumented |
content:List[ | Undocumented |
Returns | |
Tuple[ | Undocumented |
Undocumented
Parameters | |
lineno:int | Undocumented |
Returns | |
Tuple[ | Undocumented |
sphinx.domains.index.IndexRole
, sphinx.ext.autosummary.AutoLink
, sphinx.ext.intersphinx.IntersphinxRole
, sphinx.roles.Abbreviation
, sphinx.roles.EmphasizedLiteral
, sphinx.roles.GUILabel
, sphinx.roles.PEP
, sphinx.roles.RFC
, sphinx.roles.XRefRole
Undocumented
Returns | |
Tuple[ | Undocumented |