Cleanup make check.

This commit is contained in:
Georg Brandl 2010-01-13 23:38:44 +00:00
parent 07f295df7c
commit ba8ffcc8d0

View File

@ -100,7 +100,8 @@ def collect_pages(app):
backlink = urito(pagename, docname) + '#' + modname + '.' + name backlink = urito(pagename, docname) + '#' + modname + '.' + name
lines[start] = ( lines[start] = (
'<div class="viewcode-block" id="%s"><a class="viewcode-back" ' '<div class="viewcode-block" id="%s"><a class="viewcode-back" '
'href="%s">%s</a>' % (name, backlink, _('[docs]')) + lines[start]) 'href="%s">%s</a>' % (name, backlink, _('[docs]'))
+ lines[start])
lines[end - 1] += '</div>' lines[end - 1] += '</div>'
# try to find parents (for submodules) # try to find parents (for submodules)
parents = [] parents = []
@ -119,14 +120,15 @@ def collect_pages(app):
context = { context = {
'parents': parents, 'parents': parents,
'title': modname, 'title': modname,
'body': _('<h2>Source code for %s</h2>') % modname + '\n'.join(lines) 'body': _('<h2>Source code for %s</h2>') % modname + \
'\n'.join(lines)
} }
app.builder.info(' '+pagename, nonl=1) app.builder.info(' '+pagename, nonl=1)
yield (pagename, context, 'page.html') yield (pagename, context, 'page.html')
if not modnames: if not modnames:
return return
app.builder.info(' _modules/index') app.builder.info(' _modules/index')
html = ['\n'] html = ['\n']
# the stack logic is needed for using nested lists for submodules # the stack logic is needed for using nested lists for submodules