aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lv2/lv2plug.in/ns/lv2core/lv2core.ttl2
-rwxr-xr-xlv2specgen/lv2specgen.py26
-rw-r--r--lv2specgen/template.html2
3 files changed, 18 insertions, 12 deletions
diff --git a/lv2/lv2plug.in/ns/lv2core/lv2core.ttl b/lv2/lv2plug.in/ns/lv2core/lv2core.ttl
index b474252..2feb30b 100644
--- a/lv2/lv2plug.in/ns/lv2core/lv2core.ttl
+++ b/lv2/lv2plug.in/ns/lv2core/lv2core.ttl
@@ -60,7 +60,7 @@ devices). See <a href="http://www.w3.org/TR/xhtml-basic/#s_xhtmlmodules"
<http://lv2plug.in/ns/lv2core>
a owl:Ontology ;
owl:imports <http://lv2plug.in/ns/doap.owl> ;
- rdfs:seeAlso <lv2.h> , <lv2core.doap.ttl> ;
+ rdfs:seeAlso <lv2.h> , <lv2core.doap.ttl> , <../people/people.ttl> ;
lv2:documentation """
<p>LV2 is an interface for writing audio processors, or <q>plugins</q>, in
C/C++ which can be dynamically loaded into many applications, or <q>hosts</q>.
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index dfd2549..5fab9ee 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -1150,7 +1150,9 @@ def specgen(specloc, indir, style_uri, docdir, tags, instances=False, mode="spec
template = template.replace('@REVISION@', version_string)
- other_files = ''
+
+ header_files = ''
+ other_files = ''
see_also_files = specProperties(m, spec, rdfs.seeAlso)
see_also_files.sort()
for f in see_also_files:
@@ -1162,19 +1164,23 @@ def specgen(specloc, indir, style_uri, docdir, tags, instances=False, mode="spec
else:
continue # Skip seeAlso file outside bundle
- other_files += '<a href="%s">%s</a> ' % (uri, uri)
- if uri.endswith('.h'):
+
+ entry = '<a href="%s">%s</a>' % (uri, uri)
+ if uri.endswith('.h') or uri.endswith('.hpp'):
name = os.path.basename(uri)
- other_files += '(<a href="%s">docs</a>) ' % (
+ entry += ' (<a href="%s">Documentation</a>) ' % (
docdir + '/' + name.replace('.', '_8') + '.html')
- other_files += ', '
-
- if other_files.endswith(', '):
- other_files = other_files[:len(other_files) - 2]
+ header_files += '<li>%s</li>' % entry
+ else:
+ other_files += '<li>%s</li>' % entry
- other_files = '<tr><th class="metahead">See Also</th><td>%s</td></tr>' % other_files
+ files = ''
+ if header_files:
+ files += '<li>API<ul>%s</ul></li>' % header_files
+ if other_files:
+ files += '<li>Data<ul>%s</ul></li>' % other_files
- template = template.replace('@FILES@', other_files)
+ template = template.replace('@FILES@', files)
comment = getComment(m, rdflib.URIRef(spec_url), classlist)
if comment != '':
diff --git a/lv2specgen/template.html b/lv2specgen/template.html
index 728716f..4544323 100644
--- a/lv2specgen/template.html
+++ b/lv2specgen/template.html
@@ -29,7 +29,6 @@
(<a href="http://lists.lv2plug.in/listinfo.cgi/devel-lv2plug.in">subscribe</a>)
</td></tr>
@AUTHORS@
- @FILES@
</table>
</div>
@@ -40,6 +39,7 @@
<li><a href="#sec-index">Index</a></li>
<li><a href="#sec-documentation">Documentation</a></li>
<li><a href="#sec-releases">Releases</a></li>
+ @FILES@
</ul>
</div>