batmanjs/batmanjs.github.io — pull request #38 by rmosolgo (2014-02-13 01:03:14+00:00)
Title: use metadata to generate table of contents

If you guys are into it, I think a little table of contents on each file would be really nice. As the files grow, it's harder to scan the file for what you want. The autocomplete is great if you already know what you're looking for, but tough for getting the big picture.

I added a bit to `_templates/api.html` that uses the YAML front matter to generate a table of contents like this one, where each entry links to the docs for that function:

![screen shot 2014-02-12 at 4 59 59 pm](https://f.cloud.github.com/assets/2231765/2155690/3fddb8fc-944a-11e3-9b64-332eca835231.png)

__Issues:__

- needs styles :)
- some files don't have metadata yet -- would need to add it