[pypy-svn] r12606 - in pypy/dist/pypy/documentation: . tool

hpk at codespeak.net hpk at codespeak.net
Fri May 20 10:44:49 CEST 2005


Author: hpk
Date: Fri May 20 10:44:49 2005
New Revision: 12606

Modified:
   pypy/dist/pypy/documentation/_ref.txt
   pypy/dist/pypy/documentation/coding-guide.txt
   pypy/dist/pypy/documentation/tool/makeref.py
Log:
fixed another link / made ref generation warn about links
that contain a '/' but are not found. 


Modified: pypy/dist/pypy/documentation/_ref.txt
==============================================================================
--- pypy/dist/pypy/documentation/_ref.txt	(original)
+++ pypy/dist/pypy/documentation/_ref.txt	Fri May 20 10:44:49 2005
@@ -14,6 +14,7 @@
 .. _`module/`:
 .. _`pypy/module`: http://codespeak.net/svn/pypy/dist/pypy/module
 .. _`module/__builtin__/`: http://codespeak.net/svn/pypy/dist/pypy/module/__builtin__
+.. _`pypy/module/__builtin__/__init__.py`: http://codespeak.net/svn/pypy/dist/pypy/module/__builtin__/__init__.py
 .. _`module/_sre_pypy/`: http://codespeak.net/svn/pypy/dist/pypy/module/_sre_pypy
 .. _`module/parser/`: http://codespeak.net/svn/pypy/dist/pypy/module/parser
 .. _`module/recparser/`: http://codespeak.net/svn/pypy/dist/pypy/module/recparser

Modified: pypy/dist/pypy/documentation/coding-guide.txt
==============================================================================
--- pypy/dist/pypy/documentation/coding-guide.txt	(original)
+++ pypy/dist/pypy/documentation/coding-guide.txt	Fri May 20 10:44:49 2005
@@ -536,7 +536,7 @@
 
 Application level specifiations are found in the `appleveldefs` 
 dictionary found in ``__init__.py`` files of directories in ``pypy/module``. 
-For example, in `pypy/module/builtin/__init__.py`_ you find the following 
+For example, in `pypy/module/__builtin__/__init__.py`_ you find the following 
 entry specifying where ``__builtin__.locals`` comes from:: 
 
      ...
@@ -547,14 +547,12 @@
 interpreted at application level and the wrapped function value for ``locals`` 
 will be extracted accordingly. 
 
-.. _`pypy/module/builtin/__init__.py`: http://codespeak.net/svn/pypy/dist/pypy/module/builtin/__init__.py
-
 interpreter level definitions
 .............................
 
 Interpreter level specifiations are found in the ``interpleveldefs`` 
 dictionary found in ``__init__.py`` files of directories in ``pypy/module``. 
-For example, in `pypy/module/builtin/__init__.py`_ the following 
+For example, in `pypy/module/__builtin__/__init__.py`_ the following 
 entry specifies where ``__builtin__.len`` comes from:: 
 
      ...

Modified: pypy/dist/pypy/documentation/tool/makeref.py
==============================================================================
--- pypy/dist/pypy/documentation/tool/makeref.py	(original)
+++ pypy/dist/pypy/documentation/tool/makeref.py	Fri May 20 10:44:49 2005
@@ -29,6 +29,9 @@
             if cand.check(): 
                 target = dist_url + cand.relto(distdir)
                 addlink(linkname, target) 
+                break
+        else: 
+            print "WARNING %s: link %r may be bogus" %(textfile, linkname) 
 
 items = name2target.items() 
 items.sort() 
@@ -40,5 +43,6 @@
     lines.append(".. _`%s`: %s" %(linknamelist[-1], linktarget))
 
 reffile.write("\n".join(lines))
-print "last ten lines"
-for x in lines[-10:]: print x
+print "wrote %d references to %r" %(len(lines), reffile)
+#print "last ten lines"
+#for x in lines[-10:]: print x



More information about the Pypy-commit mailing list