Documentation
¶
Overview ¶
Package htmlreport renders a project report into a standalone HTML document.
The report body is authored as markdown; this package converts it to HTML, wraps it in a self-contained document, and can optionally inline every locally served image as a base64 data URI so the result is fully portable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Title is the report title, used as the document <title>.
Title string
// Markdown is the report body.
Markdown string
// InlineImages embeds local assets as base64 data URIs when true;
// when false the original image URLs are kept as-is.
InlineImages bool
// BaseDir is storage.base_dir, used to locate local assets when
// InlineImages is true.
BaseDir string
}
Options controls a single render.
Click to show internal directories.
Click to hide internal directories.