orangeqs.juice._sphinx._directives#
Module Contents#
Classes#
Document the options of a Configurable class. |
|
Directive to describe a class, function or similar object. |
|
Directive to describe a class, function or similar object. |
API#
- class orangeqs.juice._sphinx._directives.GenerateDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)#
Bases:
sphinx.util.docutils.SphinxDirectiveDocument the options of a Configurable class.
This directive has to be registered in sphinx via the
setupfunction asconfigurable-summary. Assumes theconfigurableandconfigurable-optionobject types have been registered.Examples#
Add the following to your documentation source file:
:::{configurable-summary} orangeqs.juice.schemas.logging.ServiceLoggingConfigs :::- has_content#
True
- required_arguments#
1
- class orangeqs.juice._sphinx._directives.SchemaDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)#
Bases:
sphinx.directives.ObjectDescription[str]Directive to describe a class, function or similar object.
Not used directly, but subclassed (in domain-specific directives) to add custom behaviour.
- has_content#
True
- required_arguments#
1
- handle_signature(sig: str, signode: sphinx.addnodes.desc_signature) str#
Parse the signature sig.
The individual nodes are then appended 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 :meth:
add_target_and_index()unchanged, and otherwise only used to skip duplicates.
- class orangeqs.juice._sphinx._directives.FieldDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)#
Bases:
sphinx.directives.ObjectDescription[str]Directive to describe a class, function or similar object.
Not used directly, but subclassed (in domain-specific directives) to add custom behaviour.
- has_content#
True
- required_arguments#
1
- handle_signature(sig: str, signode: sphinx.addnodes.desc_signature) str#
Parse the signature sig.
The individual nodes are then appended 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 :meth:
add_target_and_index()unchanged, and otherwise only used to skip duplicates.