only display sections in TOC if they contain pages
Merge pull request #50 from npm/hide-empty-sections

only display sections in TOC if they contain pages