Expand description
Output bundling — port of LaTeXML::Post::Pack.
Separates final-bundle concerns from the post-processing pipeline.
Both latexml_oxide and cortex_worker previously inlined their own
pack_output_zip / pack_output_zip_with_resources + add_dir_to_zip
copies; this module is the single source of truth so the two binaries
produce byte-identical bundle layouts.
Bundle layout (zip):
<html_filename> — post-processed HTML
<resource_dir>/... — every non-`.html` file under the staging
dir (Graphics-converted PNG/SVG, CSS, …),
preserving subdirectories.
<log_filename> — log text, if `log_filename` is set and
`log` is non-empty.
status — single-line status string.
telemetry.json — single-line JSON per-job telemetry, only
written when `telemetry_json` is set
(cortex_worker canvas runs).Structs§
- Pack
Options - Options for
pack_archive.
Functions§
- pack_
archive - Pack the post-processing outputs into a zip archive.