diff options
author | David Robillard <d@drobilla.net> | 2012-03-04 04:07:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-04 04:07:29 +0000 |
commit | c0e2ffdc8c828be0bc33d1531c99a6d1b1ebe803 (patch) | |
tree | 3d74d839efbb4e9bba1840f9dd68f82dfa012f43 | |
parent | 97f9df2f4645c943cbb7753ddf39efbca196d003 (diff) | |
download | lv2-c0e2ffdc8c828be0bc33d1531c99a6d1b1ebe803.tar.xz |
Fix broken links.
-rwxr-xr-x | lv2specgen/lv2specgen.py | 6 |
1 files changed, 4 insertions, 2 deletions
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 += '<a href="' + docdir + '/html/%s">API documentation</a>, ' % ( + other_files += '<a href="' + docdir + '/%s">API documentation</a>, ' % ( 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 += '(<a href="%s">docs</a>) ' % ( - docdir + '/html/' + name.replace('.', '_8') + '.html') + docdir + '/' + name.replace('.', '_8') + '.html') other_files += ', ' if other_files.endswith(', '): |