Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Automatic Section Numbering

https://stackoverflow.com/questions/2362197/restructuredtext-numbered-headersSection 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 numbered.


http://docutilswww.sourceforgesphinx-doc.netorg/0.7en/docsmaster/refusage/rstrestructuredtext/directives.html#automatic-section-numberinghtml

Sphinx Directives

http://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html

...