]> granicus.if.org Git - python/commitdiff
Add a short table of contents to the setup.cfg spec.
authorÉric Araujo <merwok@netwok.org>
Sun, 5 Jun 2011 23:52:37 +0000 (01:52 +0200)
committerÉric Araujo <merwok@netwok.org>
Sun, 5 Jun 2011 23:52:37 +0000 (01:52 +0200)
I tried shortening the sidebar ToC with the tocdepth option instead, but it has
a bug which caused all headings with a level deeper than the tocdepth value to
all have the same section number, which was a usability regression rather than
in improvement.

Doc/packaging/setupcfg.rst

index 9af8b63118d434ef77387fd9bed71a185ae3a0c0..a195d5a70a3deffd43a1e12c0022159a68052b6f 100644 (file)
@@ -12,6 +12,10 @@ This document describes the :file:`setup.cfg`, an ini-style configuration file
 (compatible with :class:`configparser.RawConfigParser`) used by Packaging to
 replace the :file:`setup.py` file.
 
+.. contents::
+   :depth: 3
+   :local:
+
 
 Syntax
 ======