diff --git a/.ci/generateIndex.py b/.ci/generateIndex.py index a833641fb496941b222c7e4122acc95e0853d8ca..775e8ee53667ee26ac0c4388dea886f73a6d5099 100644 --- a/.ci/generateIndex.py +++ b/.ci/generateIndex.py @@ -12,21 +12,8 @@ localIndexArr, orderArr = get_indexArr(sections) index = generate_index_top() -whiteList = '' - -for folder in cardDirs: - # FolderFlag gets set to true at the first iteration - folderFlag = True - - # check if folder exists - if path.isdir(folder) and folder not in ignore: - dirs = os.listdir(folder) - dirs = natsorted(dirs) - - for d in dirs: - if d[0] != "." and d not in ignore and has_subdirs(folder + "/" + d): - # walk through the folders with all the cards - folderFlag, localIndexArr, whiteList = core(localroot, folder, localIndexArr, orderArr, whiteList, folderFlag, d, sections) +# walk through the folders with all the cards +folderFlag, localIndexArr, whiteList = core(cardDirs, localroot, localIndexArr, orderArr, sections, ignore) localIndexArr = sort_sections(sections, localIndexArr, orderArr) index = generate_index(index, sections, localIndexArr)