Fix TOC depth for HTML and PDF

Main TOC should not be deep,
local TOCs and PDF TOC should
be as deep as possible.

Change-Id: I4528539bab218cda541b03812f62a0e245e8be3c