Один из вариантов заключается в следующем:
.. toctree:: :maxdepth: 2 :numbered: doc1 doc2 doc3 Subheading ----------- .. toctree:: :maxdepth: 2 :numbered: doc4 doc5 doc6