aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen/lv2specgen.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-17 05:01:47 +0000
committerDavid Robillard <d@drobilla.net>2011-03-17 05:01:47 +0000
commit65be4ad58b7297c53fc8dcb1a85c3ca946a8f95d (patch)
tree5c167fc3e14702d1f6b42ef608d1408b2119f63e /lv2specgen/lv2specgen.py
parent753a7b7b75c6e69e0d6c659c8772381b31e17ee4 (diff)
downloadlv2-65be4ad58b7297c53fc8dcb1a85c3ca946a8f95d.tar.xz
Use relative links to code documentation.
Diffstat (limited to 'lv2specgen/lv2specgen.py')
-rwxr-xr-xlv2specgen/lv2specgen.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index c9b4640..4e4818e 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -734,7 +734,8 @@ def specgen(specloc, docdir, template, doclinks, instances=False, mode="spec"):
dlfile = open(doclinks, 'r')
for line in dlfile:
sym, _, url = line.rstrip().partition(' ')
- linkmap[sym] = '<span><a href="%s">%s</a></span>' % (url, sym)
+ linkmap[sym] = '<span><a href="%s">%s</a></span>' % (
+ os.path.join(doc_base, url), sym)
m = RDF.Model()
try:
@@ -932,7 +933,7 @@ def usage():
-p PREFIX : Set ontology namespace prefix from command line
Example:
- %s lv2_foos.ttl template.html style.css lv2_foos.html ../docs -i -p foos
+ %s lv2_foos.ttl template.html style.css lv2_foos.html ../doc -i -p foos
""" % (script, script)
sys.exit(-1)