I've been found a way by myself, the ":docdepth:" metadata filed is 
dedicating to controlling local toc level. 

https://www.sphinx-doc.org/en/master/usage/restructuredtext/field-lists.html
 

On Thursday, May 14, 2020 at 3:04:59 PM UTC+8, Magic X wrote:
>
> Hi,
>
> I'm going to use the 'toc' variable in a html template to produce local 
> TOC for the current document in the sidebar, is it possible to control the 
> TOC max depth?
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/5b0029e9-7eac-4b2f-bf59-8182f97d6276o%40googlegroups.com.

Reply via email to