6.48. kink/doc/render/html/HTML_RENDER_TOOL

Launcheable module to render a kinkdoc document to a single HTML file.

Usage

The command reads kinkdoc JSON data from the standard input, converts it to a single HTML file, and writes it to the standard output.

Mod_options

• --style {Style_file_path} : gives the file path of a CSS file. The file content must be encoded in UTF-8. It is inserted in the style element of the HTML file.

• --template {Template_file_path} : gives the file path of the HTML template file. See the next section for details.

HTML template content

The HTML template must be encoded in UTF-8, and be a Str.format template string. It can contain placeholders `{Title}` for the HTML-escaped document title, `{Style}` for the CSS, and `{Body}` for the content of <body> element.

The default template is as follows:

Exit statuses

If the command succeeds, it exits with 0 as the exit status.

If not, the command exits with a non-zero exit status.

Usage example

6.48.1. HTML_RENDER_TOOL.main(Argv)

`main` is the launcher function of the module.