2.0 port of docs TOC depth fix

review by @szeiger