aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-26 16:21:49 -0500
committerDavid Robillard <d@drobilla.net>2014-11-26 16:25:51 -0500
commit3ec294f44bb3daac4814b2e63ad3234fe5cefcf6 (patch)
tree66a1dcfe104534a424779b8c2f1627c039249845 /wscript
parentd894b8367f9590a2e6e56be3bd84f2ed7c7def62 (diff)
downloadlv2-3ec294f44bb3daac4814b2e63ad3234fe5cefcf6.tar.xz
Add link to spec index on spec pages.
Diffstat (limited to 'wscript')
-rw-r--r--wscript10
1 files changed, 9 insertions, 1 deletions
diff --git a/wscript b/wscript
index e3fa60a..3951e64 100644
--- a/wscript
+++ b/wscript
@@ -165,6 +165,13 @@ def specgen(task):
if name.startswith('LV2 '):
name = name[4:]
+ # Root link
+ ctx = task.generator.bld
+ root_path = path[0:path.find('ns/') + 3]
+ root_link = os.path.relpath(root_path, path)
+ if not task.generator.bld.env.ONLINE_DOCS:
+ root_link = os.path.join(root_link, 'index.html')
+
SPECGENDIR = 'lv2specgen'
STYLEPATH = 'build/aux/style.css'
TAGFILE = 'build/doc/tags'
@@ -177,7 +184,8 @@ def specgen(task):
TAGFILE,
{ 'list_email': 'devel@lists.lv2plug.in',
'list_page': 'http://lists.lv2plug.in/listinfo.cgi/devel-lv2plug.in' },
- instances=True)
+ instances=True,
+ root_link=root_link)
lv2specgen.save(task.outputs[0].abspath(), specdoc)