From 8b4982def7eef9ba63ef1b640ebc93ee33248c86 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Oct 2010 04:00:42 +0000 Subject: Support to links to structure documentation via "urn:struct" URI scheme. For example, this will be a link to the doxygen-generated documentation for LV2_Plugin. --- lv2specgen/lv2specgen.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index bb901f9..8fc1f93 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -405,7 +405,14 @@ def docTerms(category, list, m): if label!='': doc += "
%s
" % label if comment!='': - doc += "
%s
" % comment.replace('\n\n', '

') + comment = comment.replace('\n\n', '

') + matches = re.findall('href="urn:struct:([^"]*)"', comment) + if matches: + for match in matches: + struct_uri = "../../doc/html/struct" + match.replace('_', '__') + '.html' + comment = comment.replace('href="urn:struct:' + match + '"', + 'href="' + struct_uri + '"') + doc += "
%s
" % comment if label!='' or comment != '': doc += "" terminfo = "" -- cgit v1.2.1