[pypy-svn] pypy default: change these files to look for .rst . The real fix will remove them, though,
lac
commits-noreply at bitbucket.org
Thu Mar 24 20:04:32 CET 2011
Author: Laura Creighton <lac at openend.se>
Branch:
Changeset: r42911:893582ee0333
Date: 2011-03-24 20:02 +0100
http://bitbucket.org/pypy/pypy/changeset/893582ee0333/
Log: change these files to look for .rst . The real fix will remove
them, though, I think.
diff --git a/pypy/doc/config/confrest.py b/pypy/doc/config/confrest.py
--- a/pypy/doc/config/confrest.py
+++ b/pypy/doc/config/confrest.py
@@ -7,7 +7,6 @@
all_optiondescrs = [pypyoption.pypy_optiondescription,
translationoption.translation_optiondescription,
]
-
start_to_descr = dict([(descr._name, descr) for descr in all_optiondescrs])
class PyPyPage(PyPyPage):
@@ -29,7 +28,7 @@
Page = PyPyPage
def get_content(self, txtpath, encoding):
- if txtpath.basename == "commandline.txt":
+ if txtpath.basename == "commandline.rst":
result = []
for line in txtpath.read().splitlines():
if line.startswith('.. GENERATE:'):
diff --git a/pypy/doc/config/generate.py b/pypy/doc/config/generate.py
--- a/pypy/doc/config/generate.py
+++ b/pypy/doc/config/generate.py
@@ -8,8 +8,8 @@
for descr in all_optiondescrs:
prefix = descr._name
c = config.Config(descr)
- thisdir.join(prefix + ".txt").ensure()
+ thisdir.join(prefix + ".rst").ensure()
for p in c.getpaths(include_groups=True):
- basename = prefix + "." + p + ".txt"
+ basename = prefix + "." + p + ".rst"
f = thisdir.join(basename)
f.ensure()
More information about the Pypy-commit
mailing list