[pypy-svn] pypy documentation-cleanup: add missing things to toctree
cfbolz
commits-noreply at bitbucket.org
Wed Apr 27 21:42:34 CEST 2011
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: documentation-cleanup
Changeset: r43683:224accc32740
Date: 2011-04-27 15:28 +0200
http://bitbucket.org/pypy/pypy/changeset/224accc32740/
Log: add missing things to toctree
diff --git a/pypy/doc/config/index.rst b/pypy/doc/config/index.rst
--- a/pypy/doc/config/index.rst
+++ b/pypy/doc/config/index.rst
@@ -50,3 +50,12 @@
.. _`overview`: commandline.html
.. _`Standard Interpreter Optimizations`: ../interpreter-optimizations.html
.. _`What PyPy can do for your objects`: ../objspace-proxies.html
+
+
+.. toctree::
+ :maxdepth: 2
+
+ commandline
+ translation
+ objspace
+ opt
diff --git a/pypy/config/makerestdoc.py b/pypy/config/makerestdoc.py
--- a/pypy/config/makerestdoc.py
+++ b/pypy/config/makerestdoc.py
@@ -147,11 +147,9 @@
def _get_section_header(cmdline, fullpath, subdescr):
# XXX: pypy specific hack
txtfile = configdocdir.join(fullpath + ".txt")
- print txtfile,
if not txtfile.check():
- print "not found"
+ print txtfile, "not found"
return ""
- print "found"
content = txtfile.read()
if ".. internal" in content:
return "Internal Options"
diff --git a/pypy/doc/config/commandline.txt b/pypy/doc/config/commandline.txt
--- a/pypy/doc/config/commandline.txt
+++ b/pypy/doc/config/commandline.txt
@@ -1,6 +1,6 @@
.. contents::
-
+
.. _objspace:
.. _`overview-of-command-line-options-for-objspace`:
diff --git a/pypy/doc/index.rst b/pypy/doc/index.rst
--- a/pypy/doc/index.rst
+++ b/pypy/doc/index.rst
@@ -94,6 +94,7 @@
objspace.rst
__pypy__-module.rst
objspace-proxies.rst
+ config/index.rst
dev_method.rst
extending.rst
More information about the Pypy-commit
mailing list