[pypy-svn] r12618 - in pypy/dist/pypy/documentation: . tool
hpk at codespeak.net
hpk at codespeak.net
Fri May 20 13:13:21 CEST 2005
Author: hpk
Date: Fri May 20 13:13:21 2005
New Revision: 12618
Modified:
pypy/dist/pypy/documentation/_ref.txt
pypy/dist/pypy/documentation/index.txt
pypy/dist/pypy/documentation/tool/makeref.py
Log:
issue48 resolved
issue53 testing
directory description is resolved, i just made the
documentation reference the issue40 (geninterp documentation).
Speaking of which: you can now simply reference `issueNN`_
and run pypy/documentation/tool/makeref.py
to generate all needed references.
Modified: pypy/dist/pypy/documentation/_ref.txt
==============================================================================
--- pypy/dist/pypy/documentation/_ref.txt (original)
+++ pypy/dist/pypy/documentation/_ref.txt Fri May 20 13:13:21 2005
@@ -1,3 +1,4 @@
+.. _`issue40`: http://codespeak.net/issue/pypy-dev/issue40
.. _`demo/`: http://codespeak.net/svn/pypy/dist/demo
.. _`lib-python/`: http://codespeak.net/svn/pypy/dist/lib-python
.. _`pypy/annotation`:
Modified: pypy/dist/pypy/documentation/index.txt
==============================================================================
--- pypy/dist/pypy/documentation/index.txt (original)
+++ pypy/dist/pypy/documentation/index.txt Fri May 20 13:13:21 2005
@@ -111,7 +111,8 @@
modules (see `Testing in PyPy`_)
``_cache/`` holds cache files from internally translating application
- level to interpreterlevel code. (XXXM0.5 insert link here
+ level to interpreterlevel code. (insert link when
+ `issue40`_ is resolved).
when geninterp documentation is there).
============================ ===========================================
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 13:13:21 2005
@@ -5,6 +5,7 @@
pypydir = py.path.local(pypy.__file__).dirpath()
distdir = pypydir.dirpath()
dist_url = 'http://codespeak.net/svn/pypy/dist/'
+issue_url = 'http://codespeak.net/issue/pypy-dev/'
docdir = pypydir.join('documentation')
reffile = pypydir.join('documentation', '_ref.txt')
@@ -22,16 +23,17 @@
for textfile in docdir.visit(lambda x: x.ext == '.txt',
lambda x: x.check(dotfile=0)):
for linkname in linkrex.findall(textfile.read()):
- if '/' not in linkname:
- continue
- for startloc in ('', 'pypy'):
- cand = distdir.join(startloc, linkname)
- if cand.check():
- target = dist_url + cand.relto(distdir)
- addlink(linkname, target)
- break
- else:
- print "WARNING %s: link %r may be bogus" %(textfile, linkname)
+ if '/' in linkname:
+ for startloc in ('', 'pypy'):
+ cand = distdir.join(startloc, linkname)
+ if cand.check():
+ target = dist_url + cand.relto(distdir)
+ addlink(linkname, target)
+ break
+ else:
+ print "WARNING %s: link %r may be bogus" %(textfile, linkname)
+ elif linkname.startswith('issue'):
+ addlink(linkname, issue_url+linkname)
items = name2target.items()
items.sort()
More information about the Pypy-commit
mailing list