class Builder:
Known subclasses: sphinx.builders.changes.ChangesBuilder
, sphinx.builders.dummy.DummyBuilder
, sphinx.builders.html.StandaloneHTMLBuilder
, sphinx.builders.latex.LaTeXBuilder
, sphinx.builders.manpage.ManualPageBuilder
, sphinx.builders.texinfo.TexinfoBuilder
, sphinx.builders.text.TextBuilder
, sphinx.builders.xml.XMLBuilder
, sphinx.ext.coverage.CoverageBuilder
, sphinx.builders.gettext.I18nBuilder
, sphinx.ext.doctest.DocTestBuilder
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 | finish |
Finish the building process. |
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 | init |
Load necessary templates and perform initialization. The default implementation does nothing. |
Method | prepare_writing |
A place where you can add logic before write_doc is run |
Method | write_doc |
Where you actually write something to the filesystem. |
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 |
Instance Variable | events |
Undocumented |
Method | __init__ |
Undocumented |
Method | _read_parallel |
Undocumented |
Method | _read_serial |
Undocumented |
Method | _write_parallel |
Undocumented |
Method | _write_serial |
Undocumented |
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 | get_asset_paths |
Return list of paths for assets (ex. templates, CSS, etc.). |
Method | get_builder_config |
Return a builder specific option. |
Method | get_translator_class |
Return a class of translator. |
Method | post_process_images |
Pick the best candidate for all image URIs. |
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_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 | 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 | 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 |
sphinx.builders.gettext.MessageCatalogBuilder
Main build method.
First updates the environment, and then calls write
.
Parameters | |
docnames:Iterable[ | Undocumented |
summary:str | Undocumented |
method:str | Undocumented |
Parameters | |
filenames:List[ | Undocumented |
sphinx.builders.changes.ChangesBuilder
, sphinx.builders.dummy.DummyBuilder
, sphinx.builders.gettext.MessageCatalogBuilder
, sphinx.builders.html.StandaloneHTMLBuilder
, sphinx.builders.latex.LaTeXBuilder
, sphinx.builders.manpage.ManualPageBuilder
, sphinx.builders.texinfo.TexinfoBuilder
, sphinx.builders.text.TextBuilder
, sphinx.builders.xml.XMLBuilder
, sphinx.ext.coverage.CoverageBuilder
, sphinx.ext.doctest.DocTestBuilder
Finish the building process.
The default implementation does nothing.
sphinx.builders.changes.ChangesBuilder
, sphinx.builders.dummy.DummyBuilder
, sphinx.builders.html.StandaloneHTMLBuilder
, sphinx.builders.latex.LaTeXBuilder
, sphinx.builders.manpage.ManualPageBuilder
, sphinx.builders.texinfo.TexinfoBuilder
, sphinx.builders.text.TextBuilder
, sphinx.builders.xml.XMLBuilder
, sphinx.ext.coverage.CoverageBuilder
, sphinx.builders.gettext.I18nBuilder
, sphinx.ext.doctest.DocTestBuilder
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 | |
Union[ | Undocumented |
sphinx.builders.latex.LaTeXBuilder
, sphinx.builders.singlehtml.SingleFileHTMLBuilder
, sphinx.builders.texinfo.TexinfoBuilder
Return a relative URI between two source filenames.
May raise environment.NoUri if there's no way to return a sensible URI.
Parameters | |
from_:str | Undocumented |
to:str | Undocumented |
typ:str | Undocumented |
Returns | |
str | Undocumented |
sphinx.builders.dummy.DummyBuilder
, sphinx.builders.html.StandaloneHTMLBuilder
, sphinx.builders.latex.LaTeXBuilder
, sphinx.builders.manpage.ManualPageBuilder
, sphinx.builders.texinfo.TexinfoBuilder
, sphinx.builders.text.TextBuilder
, sphinx.builders.xml.XMLBuilder
, sphinx.builders.gettext.I18nBuilder
, sphinx.ext.doctest.DocTestBuilder
Return the target URI for a document name.
typ can be used to qualify the link characteristic for individual builders.
Parameters | |
docname:str | Undocumented |
typ:str | Undocumented |
Returns | |
str | Undocumented |
sphinx.builders.changes.ChangesBuilder
, sphinx.builders.dummy.DummyBuilder
, sphinx.builders.html.StandaloneHTMLBuilder
, sphinx.builders.latex.LaTeXBuilder
, sphinx.builders.manpage.ManualPageBuilder
, sphinx.builders.texinfo.TexinfoBuilder
, sphinx.builders.text.TextBuilder
, sphinx.builders.xml.XMLBuilder
, sphinx.ext.coverage.CoverageBuilder
, sphinx.builders.gettext.I18nBuilder
, sphinx.ext.doctest.DocTestBuilder
sphinx.builders.dummy.DummyBuilder
, sphinx.builders.html.StandaloneHTMLBuilder
, sphinx.builders.text.TextBuilder
, sphinx.builders.xml.XMLBuilder
, sphinx.builders.gettext.I18nBuilder
write_doc
is runParameters | |
docnames:Set[ | Undocumented |
sphinx.builders.dummy.DummyBuilder
, sphinx.builders.html.StandaloneHTMLBuilder
, sphinx.builders.text.TextBuilder
, sphinx.builders.xml.XMLBuilder
, sphinx.builders.gettext.I18nBuilder
Parameters | |
docname:str | Undocumented |
doctree:nodes.document | Undocumented |
Type[ nodes.NodeVisitor]
=
sphinx.builders.html.StandaloneHTMLBuilder
Undocumented
str
=
sphinx.builders.changes.ChangesBuilder
, sphinx.builders.dummy.DummyBuilder
, sphinx.builders.gettext.MessageCatalogBuilder
, sphinx.builders.html.StandaloneHTMLBuilder
, sphinx.builders.latex.LaTeXBuilder
, sphinx.builders.manpage.ManualPageBuilder
, sphinx.builders.texinfo.TexinfoBuilder
, sphinx.builders.text.TextBuilder
, sphinx.builders.xml.XMLBuilder
, sphinx.ext.coverage.CoverageBuilder
, sphinx.ext.doctest.DocTestBuilder
Undocumented
str
=
sphinx.builders.changes.ChangesBuilder
, sphinx.builders.dummy.DummyBuilder
, sphinx.builders.html.StandaloneHTMLBuilder
, sphinx.builders.latex.LaTeXBuilder
, sphinx.builders.manpage.ManualPageBuilder
, sphinx.builders.texinfo.TexinfoBuilder
, sphinx.builders.text.TextBuilder
, sphinx.builders.xml.XMLBuilder
, sphinx.ext.coverage.CoverageBuilder
, sphinx.builders.gettext.I18nBuilder
, sphinx.ext.doctest.DocTestBuilder
Undocumented
bool
=
sphinx.builders.html.StandaloneHTMLBuilder
Undocumented
sphinx.builders.html.StandaloneHTMLBuilder
Undocumented
Parameters | |
app:Sphinx | Undocumented |
Undocumented
Parameters | |
docnames:List[ | Undocumented |
nproc:int | Undocumented |
Undocumented
Parameters | |
docnames:Sequence[ | Undocumented |
nproc:int | Undocumented |
sphinx.builders.html.StandaloneHTMLBuilder
Cleanup any resources.
The default implementation does nothing.
sphinx.builders.gettext.I18nBuilder
Undocumented
Parameters | |
catalogs:Set[ | Undocumented |
message:str | Undocumented |
Undocumented
Parameters | |
specified_files:List[ | Undocumented |
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:Any | Undocumented |
Returns | |
nodes.NodeVisitor | Undocumented |
sphinx.builders.html.StandaloneHTMLBuilder
Returns | |
List[ | Undocumented |
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:str | Undocumented |
default:str | Undocumented |
Returns | |
Any | Undocumented |
Parameters | |
*args:Any | Undocumented |
Returns | |
Type[ | Undocumented |
sphinx.builders.html.StandaloneHTMLBuilder
Parameters | |
doctree:Node | Undocumented |
(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[ | Undocumented |
Parameters | |
docname:str | Undocumented |
Parameters | |
env:BuildEnvironment | Undocumented |
sphinx.builders.changes.ChangesBuilder
, sphinx.builders.latex.LaTeXBuilder
, sphinx.builders.manpage.ManualPageBuilder
, sphinx.builders.singlehtml.SingleFileHTMLBuilder
, sphinx.builders.texinfo.TexinfoBuilder
, sphinx.ext.coverage.CoverageBuilder
, sphinx.ext.doctest.DocTestBuilder
Undocumented
Parameters | |
build_docnames:Iterable[ | Undocumented |
updated_docnames:Sequence[ | Undocumented |
method:str | Undocumented |
sphinx.builders.html.StandaloneHTMLBuilder
Parameters | |
docname:str | Undocumented |
doctree:nodes.document | Undocumented |