sphinx
Classes
A hidden doctest directive. |
|
A shell directive. |
|
A thumbnail directive. |
|
- class abjad.ext.sphinx.HiddenDoctestDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]
A hidden doctest directive.
Contributes no formatting to documents built by Sphinx.
Attributes Summary
final_argument_whitespace
May the final argument contain whitespace?
has_content
May the directive have content?
option_spec
Mapping of option names to validator functions.
optional_arguments
Number of optional arguments after the required arguments.
required_arguments
Number of required directive arguments.
Executes the directive.
Methods
- class abjad.ext.sphinx.LilyPondExtension(illustrable, kind, no_trim=None, pages=None, with_columns=None, **keywords)[source]
Attributes Summary
Kind
lilypond_block
Perform console setup tasks before executing a suite of code blocks, e.g. monkeypatching IO operations to allow media capture.
Setup Sphinx, e.g. register custom nodes and visitors.
Methods
Class & static methods
-
classmethod (
Extension
).add_option(key, value)
-
static (
Extension
).depart_block_text(self, node)
- overridden classmethod setup_console(console, monkeypatch)[source]
Perform console setup tasks before executing a suite of code blocks, e.g. monkeypatching IO operations to allow media capture.
- overridden classmethod setup_sphinx(app)[source]
Setup Sphinx, e.g. register custom nodes and visitors.
-
classmethod (
Extension
).teardown_console(app) Perform console teardown tasks.
-
static (
Extension
).visit_block_latex(self, node)
-
static (
Extension
).visit_block_text(self, node)
-
classmethod (
- class abjad.ext.sphinx.ShellDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]
A shell directive.
Represents a shell session.
Generates a docutils
literal_block
node.Attributes Summary
final_argument_whitespace
May the final argument contain whitespace?
has_content
May the directive have content?
option_spec
Mapping of option names to validator functions.
optional_arguments
Number of optional arguments after the required arguments.
required_arguments
Number of required directive arguments.
Methods
- class abjad.ext.sphinx.ThumbnailDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]
A thumbnail directive.
Attributes Summary
final_argument_whitespace
May the final argument contain whitespace?
has_content
May the directive have content?
option_spec
Mapping of option names to validator functions.
optional_arguments
Number of optional arguments after the required arguments.
required_arguments
Number of required directive arguments.
Executes the directive.
Methods
Functions