The docs site is generated by /workspace/sitegen/build.py (see its README). Every generated page must now get a <title> element containing the text of the page's first # heading, and the build must also write an index.html into the output directory with one <li><a href="NAME.html">TITLE</a></li> entry per page, sorted by title. Implement this without changing how the build is invoked. The result will be run directly on this machine, so make sure it actually works here.