blark.sphinxdomain.BlarkDirectiveWithDeclarations
- class blark.sphinxdomain.BlarkDirectiveWithDeclarations(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]
Bases:
BlarkDirectiveMethods
Called before parsing content.
get_signature_prefix(sig)handle_signature(sig, signode)Transform a signature/object into RST nodes.
transform_content(contentnode)Called after creating the content through nested parsing, but before the
object-description-transformevent is emitted, and before the info-fields are transformed.Attributes
configReference to the
Configobject.domainenvReference to the
BuildEnvironmentobject.final_argument_whitespaceMay the final argument contain whitespace?
has_contentMay the directive have content?
indexnodeobjtypeoption_specMapping of option names to validator functions.
optional_argumentsNumber of optional arguments after the required arguments.
required_argumentsNumber of required directive arguments.
nameThe role name actually used in the document.
rawtextA string containing the entire interpreted text input.
textThe interpreted text content.
linenoThe line number where the interpreted text begins.
optionsA dictionary of directive options for customization ("role" directive).
contentA list of strings, the directive content for customization ("role" directive).
- handle_signature(sig: str, signode: desc_signature) Tuple[str, str][source]
Transform a signature/object into RST nodes.
- before_content() None[source]
Called before parsing content. Used to set information about the current directive context on the build environment.