Documentation pagination?
Using Jamroom
I don't know about pagination of the ToC, but I would mention that a Table of Contents should be available on a single page view - people will use their browser search with page to find the keyword they are looking for rather than scrolling down. If it were 50,000 lines I would want it all on the same page as well, I don't think it will work for you paginating a ToC.