From c0e2ffdc8c828be0bc33d1531c99a6d1b1ebe803 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Mar 2012 04:07:29 +0000 Subject: Fix broken links. --- lv2specgen/lv2specgen.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lv2specgen') diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index e8982a0..37c0ff3 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -999,6 +999,8 @@ def load_tags(path, docdir): name = getChildText(cn, 'name') filename = getChildText(cn, 'filename') + if not filename.endswith('.html'): + filename += '.html' linkmap[name] = linkTo(name, filename) @@ -1158,7 +1160,7 @@ def specgen(specloc, indir, style_uri, docdir, tags, instances=False, mode="spec other_files = '' if os.path.exists(os.path.abspath(header_path)): - other_files += 'API documentation, ' % ( + other_files += 'API documentation, ' % ( basename + '_8h.html') header = basename + '.h' @@ -1178,7 +1180,7 @@ def specgen(specloc, indir, style_uri, docdir, tags, instances=False, mode="spec if uri.endswith('.h'): name = os.path.basename(uri) other_files += '(docs) ' % ( - docdir + '/html/' + name.replace('.', '_8') + '.html') + docdir + '/' + name.replace('.', '_8') + '.html') other_files += ', ' if other_files.endswith(', '): -- cgit v1.2.1