jashkenas/docco — pull request #207 by jverkoey (2013-05-03 23:05:14+00:00)
Title: Add support for cleaner TOC titles.

I'm not the most familiar with best practices for node.js, so bear with me on this pull request.

I wanted the Table of Contents to show the proper headers for the pages rather than the filenames. To do this I just run through the files in a prep pass to get the file titles. I then pass all of these titles to the templates so that they can render the nicer TOC.