sphinx-navtree is a small Sphinx extension that lets you modify the
documentation's HTML navigation tree while keeping the underlying TOC
structure intact:
Optimize the presentation of top-level sections across output formats.
Specify a maximum nesting depth for different parts of the nav tree.