sphinx

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true ]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0 ]; edge [color=lightslategrey, penwidth=1 ]; subgraph "cluster_docutils.parsers.rst" { graph [label="docutils.parsers.rst"]; node [color=4]; "docutils.parsers.rst.Directive" [URL="https://www.sphinx-doc.org/en/master/extdev/markupapi.html#docutils.parsers.rst.Directive", label=Directive, target=_top]; } subgraph "cluster_uqbar.book.extensions" { graph [label="uqbar.book.extensions"]; node [color=5]; "uqbar.book.extensions.Extension" [URL="http://josiahwolfoberholtzer.com/uqbar/api/uqbar/book/extensions.html#uqbar.book.extensions.Extension", label=Extension, target=_top]; } subgraph "cluster_abjad.ext.sphinx" { graph [label="abjad.ext.sphinx"]; node [color=1]; "abjad.ext.sphinx.HiddenDoctestDirective" [URL="../api/abjad/ext/sphinx.html#abjad.ext.sphinx.HiddenDoctestDirective", color=black, fontcolor=white, label="Hidden\nDoctest\nDirective", target=_top]; "abjad.ext.sphinx.LilyPondExtension" [URL="../api/abjad/ext/sphinx.html#abjad.ext.sphinx.LilyPondExtension", color=black, fontcolor=white, label="Lily\nPond\nExtension", target=_top]; "abjad.ext.sphinx.ShellDirective" [URL="../api/abjad/ext/sphinx.html#abjad.ext.sphinx.ShellDirective", color=black, fontcolor=white, label="Shell\nDirective", target=_top]; "abjad.ext.sphinx.ThumbnailDirective" [URL="../api/abjad/ext/sphinx.html#abjad.ext.sphinx.ThumbnailDirective", color=black, fontcolor=white, label="Thumbnail\nDirective", target=_top]; "abjad.ext.sphinx.thumbnail_block" [URL="../api/abjad/ext/sphinx.html#abjad.ext.sphinx.thumbnail_block", color=black, fontcolor=white, label="thumbnail\nblock", target=_top]; } subgraph cluster_builtins { graph [label=builtins]; node [color=2]; "builtins.object" [URL="https://docs.python.org/3.10/library/functions.html#object", label=object, target=_top]; } subgraph "cluster_docutils.nodes" { graph [label="docutils.nodes"]; node [color=3]; "docutils.nodes.Body" [label=Body]; "docutils.nodes.General" [label=General]; "docutils.nodes.Body" -> "docutils.nodes.General"; "docutils.nodes.Element" [label=Element]; "docutils.nodes.image" [label=image]; "docutils.nodes.Element" -> "docutils.nodes.image"; "docutils.nodes.General" -> "docutils.nodes.image"; "docutils.nodes.Inline" [label=Inline]; "docutils.nodes.Inline" -> "docutils.nodes.image"; "docutils.nodes.Node" [label="Node"]; "docutils.nodes.Node" -> "docutils.nodes.Element"; } "builtins.object" -> "docutils.nodes.Body" [minlen=1]; "builtins.object" -> "docutils.nodes.Inline" [minlen=2]; "builtins.object" -> "docutils.nodes.Node" [minlen=1]; "builtins.object" -> "docutils.parsers.rst.Directive"; "builtins.object" -> "uqbar.book.extensions.Extension" [minlen=2]; "docutils.nodes.Element" -> "abjad.ext.sphinx.thumbnail_block"; "docutils.nodes.General" -> "abjad.ext.sphinx.thumbnail_block"; "docutils.nodes.image" -> "abjad.ext.sphinx.thumbnail_block"; "docutils.parsers.rst.Directive" -> "abjad.ext.sphinx.HiddenDoctestDirective" [minlen=1]; "docutils.parsers.rst.Directive" -> "abjad.ext.sphinx.ShellDirective" [minlen=2]; "docutils.parsers.rst.Directive" -> "abjad.ext.sphinx.ThumbnailDirective" [minlen=1]; "uqbar.book.extensions.Extension" -> "abjad.ext.sphinx.LilyPondExtension" [minlen=1]; }


Classes

HiddenDoctestDirective

A hidden doctest directive.

LilyPondExtension

ShellDirective

A shell directive.

ThumbnailDirective

A thumbnail directive.

thumbnail_block

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.

run

Executes the directive.


Methods

overridden run()[source]

Executes the directive.

class abjad.ext.sphinx.LilyPondExtension(illustrable, kind, no_trim=None, pages=None, with_columns=None, **keywords)[source]

Attributes Summary

Kind

lilypond_block

setup_console

Perform console setup tasks before executing a suite of code blocks, e.g.

setup_sphinx

Setup Sphinx, e.g.

to_docutils

visit_block_html


Methods

to_docutils()[source]

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.

overridden static visit_block_html(self, node)[source]
static (Extension).visit_block_latex(self, node)
static (Extension).visit_block_text(self, node)
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.

run


Methods

overridden run()[source]
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.

run

Executes the directive.


Methods

overridden run()[source]

Executes the directive.

class abjad.ext.sphinx.thumbnail_block(rawsource='', *children, **attributes)[source]

Functions

embed_images

install_lightbox_static_files

on_builder_inited

on_html_collect_pages

setup

visit_thumbnail_block_html

visit_thumbnail_block_latex

abjad.ext.sphinx.embed_images(self, node, output_directory, render_prefix, source_path)[source]
abjad.ext.sphinx.install_lightbox_static_files(app)[source]
abjad.ext.sphinx.on_builder_inited(app)[source]
abjad.ext.sphinx.on_html_collect_pages(app)[source]
abjad.ext.sphinx.setup(app)[source]
abjad.ext.sphinx.visit_thumbnail_block_html(self, node)[source]
abjad.ext.sphinx.visit_thumbnail_block_latex(self, node)[source]