diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2021-10-13 14:02:15 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2021-10-13 15:40:07 +0300 |
commit | c7baf4a1eeb46e96a1b72dc9a6e483a7621d2996 (patch) | |
tree | 7d5320cc595ef333c96b9cfbcaafb5f13da7b00a /calm/pkg2html.py | |
parent | f62c9f69af7345ff14a9d4a2bae99a80023626e6 (diff) |
Link back from package contents to package summary
Diffstat (limited to 'calm/pkg2html.py')
-rwxr-xr-x | calm/pkg2html.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/calm/pkg2html.py b/calm/pkg2html.py index 5113d36..30b5211 100755 --- a/calm/pkg2html.py +++ b/calm/pkg2html.py @@ -457,20 +457,20 @@ def write_arch_listing(args, packages, arch): with utils.open_amifc(listing) as f: bv = packages[p].best_version - header = p + ": " + sdesc(packages[p], bv) + desc = sdesc(packages[p], bv) if fver.endswith('-src'): - header = header + " (source)" + desc = desc + " (source)" print(textwrap.dedent('''\ <!DOCTYPE html> <html> <head> - <title>%s</title> + <title>%s: %s</title> </head> <body> - <h1>%s</h1> - <pre>''' % (header, header)), file=f) + <h1><a href="../../summary/%s.html">%s</a>: %s</h1> + <pre>''' % (p, desc, p, p, desc)), file=f) tf = os.path.join(args.rel_area, to.path, to.fn) if not os.path.exists(tf): |