From c5bb8d806d72ec9340188c558fab8d972db7891f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 24 Mar 2019 19:32:44 +0100 Subject: Don't build file index for offline documentation --- lv2specgen/lv2specgen.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 1363303..e280b25 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -734,7 +734,7 @@ def getAnchor(uri): return getShortName(uri) -def buildIndex(m, classlist, proplist, instalist=None, filelist=None): +def buildIndex(m, classlist, proplist, instalist=None, filelist=None, online=False): if not (classlist or proplist or instalist or filelist): return '' @@ -802,7 +802,7 @@ def buildIndex(m, classlist, proplist, instalist=None, filelist=None): body += '
  • %s
  • ' % (anchor, p) body += '\n' - if (filelist is not None and len(filelist) > 0): + if online and filelist and len(filelist) > 0: head += 'Files' body += '