aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-11 19:57:50 +0000
committerDavid Robillard <d@drobilla.net>2011-03-11 19:57:50 +0000
commitd21e45c16f9e0b838ff288beda9eef4c6c5bee58 (patch)
tree87a11e1012868be5e1431f35aab131978c951fc4 /lv2specgen
parent4bd30095f0879d0ed77837caf80c1b8980c405e2 (diff)
downloadlv2-d21e45c16f9e0b838ff288beda9eef4c6c5bee58.tar.xz
Use fragment links to current document to make documentation bundles movable without breaking the links.
Unfortunate side-effect is that the links at lv2plug.in looks like lv2core/#SomeClass :/
Diffstat (limited to 'lv2specgen')
-rwxr-xr-xlv2specgen/lv2specgen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index bb042db..9b9ce1a 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -419,7 +419,7 @@ def docTerms(category, list, m):
except:
term_uri = term
- doc += """<div class="specterm" id="%s" about="%s">\n<h3>%s <a href="%s">%s</a></h3>\n""" % (t, term_uri, category, term_uri, curie)
+ doc += """<div class="specterm" id="%s" about="%s">\n<h3>%s <a href="#%s">%s</a></h3>\n""" % (t, term_uri, category, getAnchor(str(term_uri)), curie)
label = getLabel(m, term)
comment = getComment(m, term)