Manual:$wgMaxTocLevel

Details
Maximum indent level of toc.