This document is a work in progress
Initialize application
Find applicable Converter
Read configuration file
Discovery phase, for each input file:
Collect meta-data from AST, such as: Document titles, headings, glossary, list of assets
Build Abstract Syntax Tree (AST) with Converter (does not write files).
Creation phase, for each input file:
Build Abstract Syntax Tree (AST) with Converter
Enhance AST with the discovered meta-data
Generate document in the desired output format
Decorate the results with a template
Save result to disk
Some output formats do not generate independent files (such as PDF or Latex). In this case will step 4 through 5 not be executed for each file but for the sum of all files.
Copy assets to their destination location