From: Dan Vanderkam Date: Tue, 13 Aug 2013 20:24:01 +0000 (-0400) Subject: absolute links X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=refs%2Fheads%2Frelease-1.0.0;p=dygraphs.git absolute links --- diff --git a/generate-download.py b/generate-download.py index 3b1a589..9e3bd47 100755 --- a/generate-download.py +++ b/generate-download.py @@ -10,7 +10,7 @@ releases = json.load(file('releases.json')) def file_links(release): v = release['version'] - return ['%(f)s' % { + return ['%(f)s' % { 'f': f, 'v': v} for f in release['files']] @@ -27,7 +27,7 @@ current_html = '

' + ('

'.join(file_links(releases[0]))) + '

' previous_lis = [] for release in releases[1:]: - previous_lis.append('
  • %(v)s: %(files)s (%(v)s docs)' % { + previous_lis.append('
  • %(v)s: %(files)s (%(v)s docs)' % { 'v': release['version'], 'files': ', '.join(file_links(release)) })