trlcdoc.html
============
.. py:module:: trlcdoc.html
.. autoapi-nested-parse::
Generate the Sphinx sources from the configured documents and build the HTML site.
Attributes
----------
.. autoapisummary::
trlcdoc.html.SPHINX_TEMPLATE_DIR
trlcdoc.html.LOG
trlcdoc.html.INCLUDE_SUFFIX
trlcdoc.html.RST_TRACE_REPORT_EXTENSIONS
trlcdoc.html.PAGE_TITLE_CHAR
Functions
---------
.. autoapisummary::
trlcdoc.html.build_html
trlcdoc.html.show_html
Module Contents
---------------
.. py:data:: SPHINX_TEMPLATE_DIR
.. py:data:: LOG
.. py:data:: INCLUDE_SUFFIX
:value: '.inc'
.. py:data:: RST_TRACE_REPORT_EXTENSIONS
:value: ['sphinx_design', 'sphinx.ext.graphviz']
.. py:data:: PAGE_TITLE_CHAR
:value: '-'
.. py:function:: build_html(cfg: trlcdoc.config.Config) -> pathlib.Path
Generate the Sphinx source folder and build the HTML site.
:param cfg: Project configuration.
:type cfg: Config
:returns: The HTML output folder.
:rtype: Path
:raises TrlcdocError: If an input or Graphviz is missing, or Sphinx reports an error.
.. py:function:: show_html(cfg: trlcdoc.config.Config) -> pathlib.Path
Open the start page of the built HTML site in the web browser.
Under WSL, the site opens in the Windows default browser (wslview or explorer.exe).
Without Windows interop, and on all other systems, the Python webbrowser module
selects the browser, which the BROWSER environment variable can override.
:param cfg: Project configuration.
:type cfg: Config
:returns: The opened start page.
:rtype: Path
:raises TrlcdocError: If the site is not built or no web browser is available.