title: Limiting sidebar TOC depth in Sphinx HTML builder
body: <p>I'm trying to limit the depth of sidebar toc generated by Sphinx HTML Biulder. I tried to change localsidebar.html with my own but I couldn't find any hints in the <a href="http://sphinx-doc.org/templating.html" rel="nofollow">documentation</a>, just the deprecated options. <code>{{ toc }}</code> contains rendered local toc but there's no info about how to work with it before it gets rendered.</p>