Use the HTML document outliner module in gulp to create table of contents in files as they're built.