How can I implement automatic multilevel list numbering in sphinx reStructuredText?
Let's say there is a to-do list somewhere in the document: (here the numbering is manual)
1. Do something #1
1.1 Do something #2
1.1.1 Do something #3
Moreover, there is a requirement that it be a single document for subsequent PDF printing, and there may also be some text between the headers.
I tried to implement it through toctree
, but I get only headers from a third-party file, and in the form of links to individual documentation pages.
I tried using content
- but due to the binding to the header levels, it is not possible to get the normal numbering of the local section.