class ObjectDescription(SphinxDirective, Generic[T]):
Known subclasses: sphinx.domains.c.CAliasObject
, sphinx.domains.cpp.CPPAliasObject
Method | add_target_and_index |
Add cross-reference IDs and entries to self.indexnode, if applicable. |
Method | after_content |
Called after parsing content. Used to reset information about the current directive context on the build environment. |
Method | before_content |
Called before parsing content. Used to set information about the current directive context on the build environment. |
Method | get_signatures |
Retrieve the signatures to document from the directive arguments. By default, signatures are given as arguments, one per line. |
Method | handle_signature |
Parse the signature sig into individual nodes and append them to signode. If ValueError is raised, parsing is aborted and the whole sig is put into a single desc_name node. |
Method | run |
Main directive entry function, called by docutils upon encountering the directive. |
Method | transform_content |
No summary |
Method | get_field_type_map |
Undocumented |
Class Variable | doc_field_types |
Undocumented |
Class Variable | final_argument_whitespace |
Undocumented |
Class Variable | has_content |
Undocumented |
Class Variable | option_spec |
Undocumented |
Class Variable | optional_arguments |
Undocumented |
Class Variable | required_arguments |
Undocumented |
Instance Variable | _doc_field_type_map |
Undocumented |
Instance Variable | domain |
Undocumented |
Instance Variable | indexnode |
Undocumented |
Instance Variable | names |
Undocumented |
Instance Variable | objtype |
Undocumented |
Inherited from SphinxDirective
:
Method | get_location |
Get current location info for logging. |
Method | get_source_info |
Get source and line number. |
Method | set_source_info |
Set source and line number to the node. |
Property | config |
Reference to the .Config object. |
Property | env |
Reference to the .BuildEnvironment object. |
Add cross-reference IDs and entries to self.indexnode, if applicable.
name is whatever handle_signature()
returned.
Parameters | |
name:T | Undocumented |
sig:str | Undocumented |
signode:desc_signature | Undocumented |
Returns | |
List[ | Undocumented |
Parse the signature sig into individual nodes and append them to signode. If ValueError is raised, parsing is aborted and the whole sig is put into a single desc_name node.
The return value should be a value that identifies the object. It is
passed to add_target_and_index()
unchanged, and otherwise only
used to skip duplicates.
Parameters | |
sig:str | Undocumented |
signode:desc_signature | Undocumented |
Returns | |
T | Undocumented |
sphinx.domains.c.CAliasObject
, sphinx.domains.cpp.CPPAliasObject
Main directive entry function, called by docutils upon encountering the directive.
This directive is meant to be quite easily subclassable, so it delegates to several additional methods. What it does:
desc
node to fit all description insidenoindex
Returns | |
List[ | Undocumented |
Parameters | |
contentnode:addnodes.desc_content | Undocumented |
OptionSpec
=
sphinx.domains.c.CAliasObject
, sphinx.domains.cpp.CPPAliasObject
Undocumented
sphinx.domains.c.CAliasObject
, sphinx.domains.cpp.CPPAliasObject
Undocumented
List[ T]
=
sphinx.domains.c.CAliasObject
, sphinx.domains.cpp.CPPAliasObject
Undocumented
sphinx.domains.c.CAliasObject
, sphinx.domains.cpp.CPPAliasObject
Undocumented