Automatic Section Numbering
If you want to have section numbers even in HTML output, give the toplevel toctree a
numbered option. For example:
.. toctree:: :numbered: foo bar
Numbering then starts at the heading of
foo. Sub-toctrees are automatically numbered (don’t give the
numbered flag to those).
Numbering up to a specific depth is also possible, by giving the depth as a numeric argument to