Factor anchor generation out into function.
Generate printable pages after pre-processing is otherwise complete.

This way we get the auto-generated links into the printable document as well.
Include a table-of-content on the top of the documentation.

Include three levels of headers, try to link to anchor within page (which
might not work, in which case I have to add the HTML output as well in the
link generated).