[Python-checkins] cpython: Add a short table of contents to the setup.cfg spec.

eric.araujo python-checkins at python.org
Mon Jun 6 17:14:11 CEST 2011


http://hg.python.org/cpython/rev/9d4c072dbd75
changeset:   70677:9d4c072dbd75
user:        Éric Araujo <merwok at netwok.org>
date:        Mon Jun 06 01:52:37 2011 +0200
summary:
  Add a short table of contents to the setup.cfg spec.

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.

files:
  Doc/packaging/setupcfg.rst |  4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/Doc/packaging/setupcfg.rst b/Doc/packaging/setupcfg.rst
--- a/Doc/packaging/setupcfg.rst
+++ b/Doc/packaging/setupcfg.rst
@@ -12,6 +12,10 @@
 (compatible with :class:`configparser.RawConfigParser`) used by Packaging to
 replace the :file:`setup.py` file.
 
+.. contents::
+   :depth: 3
+   :local:
+
 
 Syntax
 ======

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list