aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgendoc.py2
-rwxr-xr-xlv2specgen/lv2specgen.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/gendoc.py b/gendoc.py
index 94b6814..49cd455 100755
--- a/gendoc.py
+++ b/gendoc.py
@@ -18,7 +18,7 @@ except:
os.makedirs(out_base)
URIPREFIX = 'http://lv2plug.in/ns/'
-DOXPREFIX = 'http://lv2plug.in/ns/doc/html/'
+DOXPREFIX = 'ns/doc/html/'
SPECGENDIR = './specgen'
STYLEURI = os.path.join('aux', 'style.css')
TAGFILE = './doclinks'
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)