From 65be4ad58b7297c53fc8dcb1a85c3ca946a8f95d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Mar 2011 05:01:47 +0000 Subject: Use relative links to code documentation. --- lv2specgen/lv2specgen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lv2specgen') 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] = '%s' % (url, sym) + linkmap[sym] = '%s' % ( + 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) -- cgit v1.2.1