aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen/lv2specgen.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-24 17:54:48 +0100
committerDavid Robillard <d@drobilla.net>2019-03-24 21:23:02 +0100
commitd7c652ebab7ef5fa91d89f4b511bd4c8120d5fd7 (patch)
tree6cb2c09c541baaa836b2a3a4ca9d53cb2a15da2f /lv2specgen/lv2specgen.py
parent4425f09db6a4cad5aaf949f16e89181c45992b15 (diff)
downloadlv2-d7c652ebab7ef5fa91d89f4b511bd4c8120d5fd7.tar.xz
Fix broken links to API documentation
Diffstat (limited to 'lv2specgen/lv2specgen.py')
-rwxr-xr-xlv2specgen/lv2specgen.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 0c6adb1..a6f30db 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -1160,15 +1160,17 @@ def writeIndex(model, specloc, index_path, root_path, root_uri):
else:
target = os.path.relpath(ext_node, root_path)
+ stem = os.path.splitext(os.path.basename(target))[0]
+
# Specification (comment is to act as a sort key)
if not options.online_docs:
- target += '/' + os.path.basename(target) + '.html'
+ target += '/' + stem + '.html'
row = '<tr><!-- %s --><td><a rel="rdfs:seeAlso" href="%s">%s</a></td>' % (
b, target, name)
# API
row += '<td><a rel="rdfs:seeAlso" href="../doc/html/group__%s.html">%s</a></td>' % (
- b, b)
+ stem, name)
# Description
if shortdesc: