I actually replied to the wrong top comment here, this was meant for https://news.ycombinator.com/item?id=15561356. This links to https://github.com/mcohen01/amazonica which is 25 pages printed - and then you definitely should have a TOC just to be able to learn what the content is all about.
If you are doing TOC manually in Confluence you are doing it wrong by the way: Both TOC or links to subpages can be done automatically.