Add TOC to library.html, fix split category