Thanks for the insight. I see the approach you're taking now with
multiple toctree directives. The problem is that I gave an
oversimplified example of my real TOC structure. What about the
following example, where I'd like:
* Doc1
* Doc2
* Doc3
* Doc3, Sec1
* Doc3, Sec2
* Doc4
* Doc4, Sec1
* Doc4, Sec2
* Doc5
* Doc6
* Doc7
* Doc8
* Doc9
* Doc10
* Doc10, Sec1
* Doc10, Sec2
* Doc11
* Doc11, Sec1
* Doc11, Sec2
* Doc12
to render as:
* Doc1
* Doc2
* Doc3
* Doc4
* Doc5
* Doc6
* Doc7
* Doc8
* Doc9
* Doc10
* Doc11
* Doc12
I see two problems here with multiple toctrees. First, each toctree
directive resets TOC level back to zero. If I give Doc5 its own root
in a toctree it'll render at the same level as Doc1 and Doc2, for
example. Second, Doc5 is listed in a sub-toctree in Doc2. With two
toctrees in this root Doc0, say, it'll appear once as a child of Doc2
(peer of 3 and 4) and then again as the root of a toc for 5, 6, and 7.