trlcdoc.html
Generate the Sphinx sources from the configured documents and build the HTML site.
Attributes
Functions
|
Generate the Sphinx source folder and build the HTML site. |
|
Open the start page of the built HTML site in the web browser. |
Module Contents
- trlcdoc.html.SPHINX_TEMPLATE_DIR
- trlcdoc.html.LOG
- trlcdoc.html.INCLUDE_SUFFIX = '.inc'
- trlcdoc.html.RST_TRACE_REPORT_EXTENSIONS = ['sphinx_design', 'sphinx.ext.graphviz']
- trlcdoc.html.PAGE_TITLE_CHAR = '-'
- trlcdoc.html.build_html(cfg: trlcdoc.config.Config) pathlib.Path[source]
Generate the Sphinx source folder and build the HTML site.
- Parameters:
cfg (Config) – Project configuration.
- Returns:
The HTML output folder.
- Return type:
Path
- Raises:
TrlcdocError – If an input or Graphviz is missing, or Sphinx reports an error.
- trlcdoc.html.show_html(cfg: trlcdoc.config.Config) pathlib.Path[source]
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.
- Parameters:
cfg (Config) – Project configuration.
- Returns:
The opened start page.
- Return type:
Path
- Raises:
TrlcdocError – If the site is not built or no web browser is available.