class documentation

class StandaloneHTMLBuilder(Builder):

Known subclasses: sphinx.builders.dirhtml.DirectoryHTMLBuilder, sphinx.builders.singlehtml.SingleFileHTMLBuilder, sphinx.builders._epub_base.EpubBuilder

View In Hierarchy

Builds standalone HTML docs.
Class Variable format Undocumented
Class Variable name Undocumented
Class Variable supported​_image​_types Undocumented
Method __init__ Undocumented
Method ​_get​_local​_toctree Undocumented
Method ​_get​_style​_filename Undocumented
Method ​_get​_translations​_js Undocumented
Method add​_css​_file Undocumented
Method add​_js​_file Undocumented
Method add​_sidebars Undocumented
Method cleanup Cleanup any resources.
Method copy​_download​_files Undocumented
Method copy​_extra​_files copy html_extra_path files.
Method copy​_html​_favicon Undocumented
Method copy​_html​_logo Undocumented
Method copy​_html​_static​_files Undocumented
Method copy​_image​_files Undocumented
Method copy​_static​_files Undocumented
Method copy​_stemmer​_js Copy a JavaScript file for stemmer.
Method copy​_theme​_static​_files Undocumented
Method copy​_translation​_js Copy a JavaScript file for translations.
Method create​_build​_info Undocumented
Method create​_pygments​_style​_file create a style file for pygments.
Method dump​_inventory Undocumented
Method dump​_search​_index Undocumented
Method finish Finish the building process.
Method gen​_additional​_pages Undocumented
Method gen​_indices Undocumented
Method gen​_pages​_from​_extensions Undocumented
Method get​_asset​_paths Return list of paths for assets (ex. templates, CSS, etc.).
Method get​_doc​_context Collect items for the template context of a page.
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​_outfilename Undocumented
Method get​_target​_uri Return the target URI for a document name.
Method get​_theme​_config Undocumented
Method handle​_finish Undocumented
Method handle​_page Undocumented
Method index​_page Undocumented
Method init Load necessary templates and perform initialization. The default implementation does nothing.
Method init​_css​_files Undocumented
Method init​_highlighter Undocumented
Method init​_js​_files Undocumented
Method init​_templates Undocumented
Method load​_indexer Undocumented
Method post​_process​_images Pick the best candidate for an image and link down-scaled images to their high res version.
Method prepare​_writing A place where you can add logic before write_doc is run
Method render​_partial Utility: Render a lone doctree node.
Method update​_page​_context Undocumented
Method write​_buildinfo 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​_domain​_indices Undocumented
Method write​_genindex Undocumented
Class Variable add​_permalinks Undocumented
Class Variable allow​_parallel Undocumented
Class Variable allow​_sharp​_as​_current​_path Undocumented
Class Variable copysource Undocumented
Class Variable download​_support Undocumented
Class Variable embedded Undocumented
Class Variable epilog Undocumented
Class Variable html​_scaled​_image​_link Undocumented
Class Variable indexer​_dumps​_unicode Undocumented
Class Variable search Undocumented
Class Variable searchindex​_filename Undocumented
Class Variable supported​_data​_uri​_images Undocumented
Class Variable supported​_remote​_images Undocumented
Instance Variable ​_css​_files Undocumented
Instance Variable ​_script​_files Undocumented
Instance Variable build​_info Undocumented
Instance Variable css​_files Undocumented
Instance Variable current​_docname Undocumented
Instance Variable dark​_highlighter Undocumented
Instance Variable dlpath Undocumented
Instance Variable docsettings Undocumented
Instance Variable docwriter Undocumented
Instance Variable domain​_indices Undocumented
Instance Variable fignumbers Undocumented
Instance Variable globalcontext Undocumented
Instance Variable highlighter Undocumented
Instance Variable imagedir Undocumented
Instance Variable imgpath Undocumented
Instance Variable indexer Undocumented
Instance Variable last​_updated Undocumented
Instance Variable link​_suffix Undocumented
Instance Variable out​_suffix Undocumented
Instance Variable relations Undocumented
Instance Variable script​_files Undocumented
Instance Variable secnumbers Undocumented
Instance Variable theme Undocumented
Instance Variable theme​_options Undocumented
Instance Variable use​_index Undocumented
Property default​_translator​_class Undocumented
Property math​_renderer​_name Undocumented

Inherited from Builder:

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 get​_relative​_uri Return a relative URI between two source filenames.
Instance Variable events Undocumented
Method ​_read​_parallel Undocumented
Method ​_read​_serial Undocumented
Method ​_write​_parallel Undocumented
Method ​_write​_serial Undocumented
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​_builder​_config Return a builder specific option.
Method get​_translator​_class Return a class of translator.
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​_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 images Undocumented
Instance Variable outdir Undocumented
Instance Variable parallel​_ok Undocumented
Instance Variable srcdir Undocumented
Instance Variable tags Undocumented
Instance Variable templates Undocumented
format: str =

Undocumented

supported_image_types: list[str] =
def __init__(self, app):

Undocumented

Parameters
app:SphinxUndocumented
def _get_local_toctree(self, docname, collapse=True, **kwargs):

Undocumented

Parameters
docname:strUndocumented
collapse:boolUndocumented
**kwargs:AnyUndocumented
Returns
strUndocumented
def _get_style_filename(self):

Undocumented

Returns
strUndocumented
def _get_translations_js(self):

Undocumented

Returns
strUndocumented
def add_css_file(self, filename, **kwargs):

Undocumented

Parameters
filename:strUndocumented
**kwargs:AnyUndocumented
def add_js_file(self, filename, **kwargs):

Undocumented

Parameters
filename:strUndocumented
**kwargs:AnyUndocumented
def add_sidebars(self, pagename, ctx):

Undocumented

Parameters
pagename:strUndocumented
ctx:DictUndocumented
def cleanup(self):

Cleanup any resources.

The default implementation does nothing.

def copy_download_files(self):

Undocumented

def copy_extra_files(self):
copy html_extra_path files.
def copy_html_favicon(self):

Undocumented

def copy_html_logo(self):

Undocumented

def copy_html_static_files(self, context):

Undocumented

Parameters
context:DictUndocumented
def copy_image_files(self):

Undocumented

def copy_static_files(self):

Undocumented

def copy_stemmer_js(self):
Copy a JavaScript file for stemmer.
def copy_theme_static_files(self, context):

Undocumented

Parameters
context:DictUndocumented
def copy_translation_js(self):
Copy a JavaScript file for translations.
def create_build_info(self):

Undocumented

Returns
BuildInfoUndocumented
def create_pygments_style_file(self):
create a style file for pygments.
@progress_message(__('dumping object inventory'))
def dump_inventory(self):

Undocumented

def dump_search_index(self):

Undocumented

def finish(self):

Finish the building process.

The default implementation does nothing.

@progress_message(__('writing additional pages'))
def gen_additional_pages(self):

Undocumented

@progress_message(__('generating indices'))
def gen_indices(self):

Undocumented

def gen_pages_from_extensions(self):

Undocumented

def get_asset_paths(self):
Return list of paths for assets (ex. templates, CSS, etc.).
Returns
List[str]Undocumented
def get_doc_context(self, docname, body, metatags):
Collect items for the template context of a page.
Parameters
docname:strUndocumented
body:strUndocumented
metatags:strUndocumented
Returns
Dict[str, Any]Undocumented
def get_outdated_docs(self):

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
Iterator[str]Undocumented
def get_outfilename(self, pagename):

Undocumented

Parameters
pagename:strUndocumented
Returns
strUndocumented
def get_target_uri(self, docname, typ=None):

Return the target URI for a document name.

typ can be used to qualify the link characteristic for individual builders.

Parameters
docname:strUndocumented
typ:strUndocumented
Returns
strUndocumented
def get_theme_config(self):

Undocumented

Returns
Tuple[str, Dict]Undocumented
def handle_finish(self):

Undocumented

def handle_page(self, pagename, addctx, templatename='page.html', outfilename=None, event_arg=None):

Undocumented

Parameters
pagename:strUndocumented
addctx:DictUndocumented
templatename:strUndocumented
outfilename:strUndocumented
event​_arg:AnyUndocumented
def index_page(self, pagename, doctree, title):

Undocumented

Parameters
pagename:strUndocumented
doctree:nodes.documentUndocumented
title:strUndocumented
def init(self):
Load necessary templates and perform initialization. The default implementation does nothing.
def init_css_files(self):

Undocumented

def init_highlighter(self):

Undocumented

def init_js_files(self):

Undocumented

def init_templates(self):

Undocumented

def load_indexer(self, docnames):

Undocumented

Parameters
docnames:Iterable[str]Undocumented
def post_process_images(self, doctree):
Pick the best candidate for an image and link down-scaled images to their high res version.
Parameters
doctree:NodeUndocumented
def prepare_writing(self, docnames):
A place where you can add logic before write_doc is run
Parameters
docnames:Set[str]Undocumented
def render_partial(self, node):
Utility: Render a lone doctree node.
Parameters
node:NodeUndocumented
Returns
Dict[str, str]Undocumented
def update_page_context(self, pagename, templatename, ctx, event_arg):

Undocumented

Parameters
pagename:strUndocumented
templatename:strUndocumented
ctx:DictUndocumented
event​_arg:AnyUndocumented
def write_buildinfo(self):

Undocumented

def write_doc(self, docname, doctree):
Where you actually write something to the filesystem.
Parameters
docname:strUndocumented
doctree:nodes.documentUndocumented
def write_doc_serialized(self, docname, doctree):
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_domain_indices(self):

Undocumented

def write_genindex(self):

Undocumented

add_permalinks: bool =

Undocumented

allow_parallel: bool =
allow_sharp_as_current_path: bool =

Undocumented

download_support: bool =

Undocumented

embedded: bool =

Undocumented

html_scaled_image_link: bool =

Undocumented

indexer_dumps_unicode: bool =

Undocumented

search: bool =

Undocumented

searchindex_filename: str =

Undocumented

supported_data_uri_images: bool =
supported_remote_images: bool =
_css_files =

Undocumented

_script_files =

Undocumented

build_info =

Undocumented

css_files: list =

Undocumented

current_docname =

Undocumented

dark_highlighter =

Undocumented

dlpath =

Undocumented

docsettings: Any =

Undocumented

docwriter =

Undocumented

domain_indices: list =

Undocumented

fignumbers =

Undocumented

globalcontext =

Undocumented

highlighter =

Undocumented

imagedir: str =

Undocumented

imgpath =

Undocumented

indexer =

Undocumented

last_updated =

Undocumented

link_suffix =

Undocumented

out_suffix =

Undocumented

relations =

Undocumented

script_files: list =

Undocumented

secnumbers =

Undocumented

theme =

Undocumented

theme_options =

Undocumented

use_index =

Undocumented

@property
default_translator_class: Type[nodes.NodeVisitor] =
@property
math_renderer_name: str =

Undocumented