summaryrefslogtreecommitdiff
path: root/paste
diff options
context:
space:
mode:
Diffstat (limited to 'paste')
-rwxr-xr-xpaste/docsupport/gensite.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/paste/docsupport/gensite.py b/paste/docsupport/gensite.py
index 09124dc..f8bebb9 100755
--- a/paste/docsupport/gensite.py
+++ b/paste/docsupport/gensite.py
@@ -50,7 +50,7 @@ def gen_site(conf):
template.ns.clear()
f.update_ns(template.ns)
content = str(template)
- print 'Writing %s to %s (%i bytes)' % (source, dest, len(content))
+ print 'Writing %s (%i bytes)' % (os.path.basename(source), len(content))
dest_dir = os.path.dirname(dest)
if not os.path.exists(dest_dir):
print 'Creating %s' % dest_dir
@@ -112,7 +112,8 @@ class RestFile(object):
(re.compile(r'<h1 class="title">.*?</h1>'), ''),
(re.compile(r'(<p class=".*?"><a name="contents">.*?</p>)[ \n]*'
r'(<ul class="simple">)'),
- '<div><ul class="simple contents">'),
+ '<div><ul class="simple contents">\n'
+ '<li class="header">Contents</li>\n'),
(re.compile(r'(<th class="docinfo-name">Date:</th>[ \n]*)'
r'(<td>).*?\((.*?)\)'),
r'\1\2\3'),