From 882cb0ae306d8a26699a1c9224640cc8cf8971a3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 26 Mar 2012 23:42:50 +0000 Subject: Move files listing into contents. Hopefully a more obvious link to the API will appease the C curmudgeons. --- lv2/lv2plug.in/ns/lv2core/lv2core.ttl | 2 +- lv2specgen/lv2specgen.py | 26 ++++++++++++++++---------- lv2specgen/template.html | 2 +- 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 owl:Ontology ; owl:imports ; - rdfs:seeAlso , ; + rdfs:seeAlso , , <../people/people.ttl> ; lv2:documentation """

LV2 is an interface for writing audio processors, or plugins, in C/C++ which can be dynamically loaded into many applications, or hosts. 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 += '%s ' % (uri, uri) - if uri.endswith('.h'): + + entry = '%s' % (uri, uri) + if uri.endswith('.h') or uri.endswith('.hpp'): name = os.path.basename(uri) - other_files += '(docs) ' % ( + entry += ' (Documentation) ' % ( docdir + '/' + name.replace('.', '_8') + '.html') - other_files += ', ' - - if other_files.endswith(', '): - other_files = other_files[:len(other_files) - 2] + header_files += '

  • %s
  • ' % entry + else: + other_files += '
  • %s
  • ' % entry - other_files = 'See Also%s' % other_files + files = '' + if header_files: + files += '
  • API
  • ' % header_files + if other_files: + files += '
  • Data
  • ' % 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 @@ (subscribe) @AUTHORS@ - @FILES@ @@ -40,6 +39,7 @@
  • Index
  • Documentation
  • Releases
  • + @FILES@ -- cgit v1.2.1