class documentation
Undocumented
Method | result |
Called before returning the finished nodes. *node* is the reference node if one was created (*is_ref* is then true), else the content node. This method can add other nodes and must return a ``(nodes, messages)`` tuple (the usual return value of a role function). |
Inherited from XRefRole
:
Method | __init__ |
Undocumented |
Method | create |
Undocumented |
Method | create |
Undocumented |
Method | process |
Called after parsing title and target text, and creating the reference node (given in *refnode*). This method can alter the reference node and must return a new (or the same) ``(title, target)`` tuple. |
Method | run |
Undocumented |
Method | update |
Undocumented |
Instance Variable | classes |
Undocumented |
Instance Variable | fix |
Undocumented |
Instance Variable | has |
Undocumented |
Instance Variable | innernodeclass |
Undocumented |
Instance Variable | lowercase |
Undocumented |
Instance Variable | nodeclass |
Undocumented |
Instance Variable | refdomain |
Undocumented |
Instance Variable | reftype |
Undocumented |
Instance Variable | warn |
Undocumented |
Inherited from ReferenceRole
(via XRefRole
):
Method | __call__ |
Undocumented |
Class Variable | explicit |
Undocumented |
Instance Variable | disabled |
Undocumented |
Instance Variable | target |
Undocumented |
Instance Variable | title |
Undocumented |
Inherited from SphinxRole
(via XRefRole
, ReferenceRole
):
Method | get |
Get current location info for logging. |
Method | get |
Undocumented |
Method | set |
Undocumented |
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 :class:`.Config` object. |
Property | env |
Reference to the :class:`.BuildEnvironment` object. |
overrides
sphinx.roles.XRefRole.result_nodes
Called before returning the finished nodes. *node* is the reference node if one was created (*is_ref* is then true), else the content node. This method can add other nodes and must return a ``(nodes, messages)`` tuple (the usual return value of a role function).
Parameters | |
document:nodes.document | Undocumented |
env:BuildEnvironment | Undocumented |
node:Element | Undocumented |
isbool | Undocumented |
Returns | |
tuple[ | Undocumented |