Update generator to spin out contents

Adds table of contents to main document for ease of navigation in document.html