aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-08 01:33:53 +0000
committerDavid Robillard <d@drobilla.net>2012-02-08 01:33:53 +0000
commit0ad020578277f8aade6b2df90385b911775ead18 (patch)
tree5352b8f35950a5c1d7aea617ae4d46aae18c45c2
parent8ab69df8c2b6f627804652e6ab16c1aa17ce6dde (diff)
downloadlv2-0ad020578277f8aade6b2df90385b911775ead18.tar.xz
Put doc links after headers in 'see also' list.
-rwxr-xr-xlv2specgen/lv2specgen.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 5740168..3626427 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -1125,7 +1125,12 @@ def specgen(specloc, indir, docdir, style_uri, doc_base, doclinks, instances=Fal
else:
print("warning: seeAlso file outside bundle: %s" % uri)
- other_files += '<a href="%s">%s</a>, ' % (uri, uri)
+ other_files += '<a href="%s">%s</a> ' % (uri, uri)
+ if uri.endswith('.h'):
+ name = os.path.basename(uri)
+ other_files += '(<a href="%s">docs</a>) ' % (
+ docdir + '/html/' + name.replace('.', '_8') + '.html')
+ other_files += ', '
if other_files.endswith(', '):
other_files = other_files[:len(other_files) - 2]