aboutsummaryrefslogtreecommitdiffstats
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
parent753a7b7b75c6e69e0d6c659c8772381b31e17ee4 (diff)
downloadlv2-65be4ad58b7297c53fc8dcb1a85c3ca946a8f95d.tar.xz
Use relative links to code documentation.
-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)