From 0d5b9864429edf34575b066b4a2d8988b8b8e302 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 27 Apr 2019 14:27:55 +0200 Subject: Remove file list from documentation pages --- lv2specgen/lv2specgen.py | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) (limited to 'lv2specgen') diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index dd77b9c..2f2a7d8 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -734,8 +734,8 @@ def getAnchor(uri): return getShortName(uri) -def buildIndex(m, classlist, proplist, instalist=None, filelist=None, online=False): - if not (classlist or proplist or instalist or filelist): +def buildIndex(m, classlist, proplist, instalist=None): + if not (classlist or proplist or instalist): return '' head = '' @@ -802,15 +802,6 @@ def buildIndex(m, classlist, proplist, instalist=None, filelist=None, online=Fal body += '
  • %s
  • ' % (anchor, p) body += '\n' - if online and filelist and len(filelist) > 0: - head += 'Files' - body += '\n' - if head and body: return '''%s @@ -1284,20 +1275,7 @@ def specgen(specloc, indir, style_uri, docdir, tags, opts, instances=False, root instalist = sorted(getInstances(m, classlist, proplist), key=lambda x: getShortName(x).lower()) - filelist = [] - see_also_files = specProperties(m, spec, rdfs.seeAlso) - for f in sorted(see_also_files): - uri = str(f) - if uri[:7] == 'file://': - uri = uri[7:] - if uri[:len(abs_bundle_path)] == abs_bundle_path: - uri = uri[len(abs_bundle_path) + 1:] - else: - continue # Skip seeAlso file outside bundle - - filelist += [uri] - - azlist = buildIndex(m, classlist, proplist, instalist, filelist, opts['online_docs']) + azlist = buildIndex(m, classlist, proplist, instalist) # Generate Term HTML classlist = docTerms('Class', classlist, m, classlist, proplist, instalist) -- cgit v1.2.1