Enhance doc generation - improve markdown processing

Wrap code to process markdown output into appropriate conditional block

--

Introduce logic to calculate file name where all combined documentation will go based on output type desired.

Before it was hardcoded as "all.markdown" before, which isn't right for HTML