class documentation

Builds target formats from the reST sources.

Method __init__ Undocumented
Method build Main build method.
Method build_all Build all source files.
Method build_specific Only rebuild as much as needed for changes in the *filenames*.
Method build_update Only rebuild what was changed or added since last build.
Method cleanup Cleanup any resources.
Method compile_all_catalogs Undocumented
Method compile_catalogs Undocumented
Method compile_specific_catalogs Undocumented
Method compile_update_catalogs Undocumented
Method create_template_bridge Return the template bridge configured.
Method create_translator Return an instance of translator.
Method finish Finish the building process.
Method get_asset_paths Return list of paths for assets (ex. templates, CSS, etc.).
Method get_builder_config Return a builder specific option.
Method get_outdated_docs Return an iterable of output files that are outdated, or a string describing what an update build will build.
Method get_relative_uri Return a relative URI between two source filenames.
Method get_target_uri Return the target URI for a document name.
Method get_translator_class Return a class of translator.
Method init Load necessary templates and perform initialization. The default implementation does nothing.
Method post_process_images Pick the best candidate for all image URIs.
Method prepare_writing A place where you can add logic before :meth:`write_doc` is run
Method read (Re-)read all files new or changed since last update.
Method read_doc Parse a file and add/update inventory entries for the doctree.
Method set_environment Store BuildEnvironment object.
Method write Undocumented
Method write_doc Where you actually write something to the filesystem.
Method write_doc_serialized Handle parts of write_doc that must be called in the main process if parallel build is active.
Method write_doctree Write the doctree to a file.
Class Variable allow_parallel Undocumented
Class Variable default_translator_class Undocumented
Class Variable epilog Undocumented
Class Variable format Undocumented
Class Variable name Undocumented
Class Variable supported_data_uri_images Undocumented
Class Variable supported_image_types Undocumented
Class Variable supported_remote_images Undocumented
Class Variable use_message_catalog Undocumented
Class Variable versioning_compare Undocumented
Class Variable versioning_method Undocumented
Instance Variable app Undocumented
Instance Variable confdir Undocumented
Instance Variable config Undocumented
Instance Variable doctreedir Undocumented
Instance Variable env Undocumented
Instance Variable events Undocumented
Instance Variable finish_tasks Undocumented
Instance Variable imagedir Undocumented
Instance Variable images Undocumented
Instance Variable imgpath Undocumented
Instance Variable outdir Undocumented
Instance Variable parallel_ok Undocumented
Instance Variable srcdir Undocumented
Instance Variable tags Undocumented
Instance Variable templates Undocumented
Method _read_parallel Undocumented
Method _read_serial Undocumented
Method _write_parallel Undocumented
Method _write_serial Undocumented
def __init__(self, app, env=None): (source)

Undocumented

Parameters
app:SphinxUndocumented
env:BuildEnvironmentUndocumented
def build(self, docnames, summary=None, method='update'): (source)

Main build method. First updates the environment, and then calls :meth:`write`.

Parameters
docnames:Iterable[str]Undocumented
summary:str|NoneUndocumented
method:strUndocumented
def build_all(self): (source)

Build all source files.

def build_specific(self, filenames): (source)

Only rebuild as much as needed for changes in the *filenames*.

Parameters
filenames:list[str]Undocumented
def build_update(self): (source)

Only rebuild what was changed or added since last build.

def cleanup(self): (source)

Cleanup any resources. The default implementation does nothing.

def compile_all_catalogs(self): (source)

Undocumented

def compile_catalogs(self, catalogs, message): (source)

Undocumented

Parameters
catalogs:set[CatalogInfo]Undocumented
message:strUndocumented
def compile_specific_catalogs(self, specified_files): (source)

Undocumented

Parameters
specified_files:list[str]Undocumented
def compile_update_catalogs(self): (source)

Undocumented

def create_template_bridge(self): (source)

Return the template bridge configured.

def create_translator(self, *args): (source)

Return an instance of translator. This method returns an instance of ``default_translator_class`` by default. Users can replace the translator class with ``app.set_translator()`` API.

Parameters
*args:AnyUndocumented
Returns
nodes.NodeVisitorUndocumented
def get_asset_paths(self): (source)

Return list of paths for assets (ex. templates, CSS, etc.).

Returns
list[str]Undocumented
def get_builder_config(self, option, default): (source)

Return a builder specific option. This method allows customization of common builder settings by inserting the name of the current builder in the option key. If the key does not exist, use default as builder name.

Parameters
option:strUndocumented
default:strUndocumented
Returns
AnyUndocumented
def get_outdated_docs(self): (source)

Return an iterable of output files that are outdated, or a string describing what an update build will build. If the builder does not output individual files corresponding to source files, return a string here. If it does, return an iterable of those files that need to be written.

Returns
str|Iterable[str]Undocumented
def get_relative_uri(self, from_, to, typ=None): (source)

Return a relative URI between two source filenames. May raise environment.NoUri if there's no way to return a sensible URI.

Parameters
from_:strUndocumented
to:strUndocumented
typ:strUndocumented
Returns
strUndocumented
def get_target_uri(self, docname, typ=None): (source)
def get_translator_class(self, *args): (source)

Return a class of translator.

Parameters
*args:AnyUndocumented
Returns
type[nodes.NodeVisitor]Undocumented
def post_process_images(self, doctree): (source)

Pick the best candidate for all image URIs.

Parameters
doctree:NodeUndocumented
def prepare_writing(self, docnames): (source)

A place where you can add logic before :meth:`write_doc` is run

Parameters
docnames:set[str]Undocumented
def read(self): (source)

(Re-)read all files new or changed since last update. Store all environment docnames in the canonical format (ie using SEP as a separator in place of os.path.sep).

Returns
list[str]Undocumented
def read_doc(self, docname): (source)

Parse a file and add/update inventory entries for the doctree.

Parameters
docname:strUndocumented
def set_environment(self, env): (source)

Store BuildEnvironment object.

Parameters
env:BuildEnvironmentUndocumented
def write_doc(self, docname, doctree): (source)

Where you actually write something to the filesystem.

Parameters
docname:strUndocumented
doctree:nodes.documentUndocumented
def write_doc_serialized(self, docname, doctree): (source)

Handle parts of write_doc that must be called in the main process if parallel build is active.

Parameters
docname:strUndocumented
doctree:nodes.documentUndocumented
def write_doctree(self, docname, doctree): (source)

Write the doctree to a file.

Parameters
docname:strUndocumented
doctree:nodes.documentUndocumented
default_translator_class: type[nodes.NodeVisitor] = (source)

Undocumented

supported_data_uri_images: bool = (source)

Undocumented

use_message_catalog: bool = (source)

Undocumented

versioning_compare: bool = (source)

Undocumented

versioning_method: str = (source)

Undocumented

Undocumented

Undocumented

Undocumented

doctreedir = (source)

Undocumented

Undocumented

Undocumented

finish_tasks = (source)

Undocumented

Undocumented

Undocumented

parallel_ok = (source)

Undocumented

Undocumented

templates = (source)

Undocumented

def _read_parallel(self, docnames, nproc): (source)

Undocumented

Parameters
docnames:list[str]Undocumented
nproc:intUndocumented
def _read_serial(self, docnames): (source)

Undocumented

Parameters
docnames:list[str]Undocumented
def _write_parallel(self, docnames, nproc): (source)

Undocumented

Parameters
docnames:Sequence[str]Undocumented
nproc:intUndocumented
def _write_serial(self, docnames): (source)

Undocumented

Parameters
docnames:Sequence[str]Undocumented