Expand description
Write a single HTML file from a single EBML file input
Some assumptions are made:
- Common HTML assets (CSS, template images) are in a folder ../assets/
- Cross-crate knowledge of the Process struct is required
A single public function performs this HTML writing task, which calls private functions to write their portions of the HTML file.
FunctionsΒ§
- compose_
bottom_ πof_ html_ file - Close html
- compose_
html_ πbody - Body portion, which is the bulk of the HTML file. The composition is broken up into other sequential functions:
- compose_
html_ πbody_ end_ of_ sections_ and_ banners - Close out the sections, and include the process documentβs header and footer banners
- compose_
html_ πbody_ rev_ req_ page - Revisions and Requirements pages
- compose_
html_ πbody_ section - Write every Section in the Process, sequentially. Include Steps within Sections and SubSteps within Steps.
- compose_
html_ πbody_ section_ step_ action_ sequence - Print ActionSequence type SubStep
- compose_
html_ πbody_ section_ step_ command - Print Command type SubStep
- compose_
html_ πbody_ section_ step_ context - Print Context type SubStep
- compose_
html_ πbody_ section_ step_ image - Print Image type SubStep
- compose_
html_ πbody_ section_ step_ objective - Print Objective type SubStep
- compose_
html_ πbody_ section_ step_ out_ of_ scope - Print Out of Scope type SubStep
- compose_
html_ πbody_ section_ step_ table - Print an arbitrary table in its own div element, based on the contents of a βTableβ struct (including a caption)
- compose_
html_ πbody_ section_ step_ verification - Print Verification type SubStep
- compose_
html_ πbody_ section_ step_ warning - Print Warning type SubStep
- compose_
html_ πbody_ title_ page - The Title Page
- compose_
html_ πbody_ toc - Table of Contents page, and the Subject/Product Resources pageβ¦
- compose_
html_ πhead - Head portion, which references external style files, stored in the Process struct at βTemplatesβ
- compose_
top_ πof_ html_ file - Basic doctype declaration and html opening
- generate_
complete_ html - Single public function that writes out a specially-formatted HTML file βfilenameβ according to the data stored in the Process struct βpβ