def file_links(release):
v = release['version']
- return ['<a href="%(v)s/%(f)s">%(f)s</a>' % {
+ return ['<a href="/%(v)s/%(f)s">%(f)s</a>' % {
'f': f, 'v': v} for f in release['files']]
previous_lis = []
for release in releases[1:]:
- previous_lis.append('<li>%(v)s: %(files)s (<a href="%(v)s/">%(v)s docs</a>)' % {
+ previous_lis.append('<li>%(v)s: %(files)s (<a href="/%(v)s/">%(v)s docs</a>)' % {
'v': release['version'],
'files': ', '.join(file_links(release))
})