diff options
author | David Robillard <d@drobilla.net> | 2019-04-27 14:27:55 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-27 17:20:53 +0200 |
commit | 0d5b9864429edf34575b066b4a2d8988b8b8e302 (patch) | |
tree | f06ee580f8f4edd295c983f5f539d43472aef4af | |
parent | 7d4d94414caffce22986d0e08c0872bda0c33127 (diff) | |
download | lv2-0d5b9864429edf34575b066b4a2d8988b8b8e302.tar.xz |
Remove file list from documentation pages
-rwxr-xr-x | lv2specgen/lv2specgen.py | 28 |
1 files changed, 3 insertions, 25 deletions
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 += '<li><a href="#%s">%s</a></li>' % (anchor, p) body += '</ul></td>\n' - if online and filelist and len(filelist) > 0: - head += '<th>Files</th>' - body += '<td><ul>' - for i in sorted(filelist): - p = getShortName(i) - anchor = getAnchor(i) - body += '<li><a href="%s">%s</a></li>' % (i, os.path.basename(i)) - body += '</ul></td>\n' - if head and body: return '''<table class="index"> <thead><tr>%s</tr></thead> @@ -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) |