Skip to content
Snippets Groups Projects
Verified Commit de19879f authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

merge all fcts

parent 6f61874d
No related branches found
No related tags found
No related merge requests found
from pathlib import Path
from generator.library import *
# loop through the entire internal tree
localroot = os.getcwd()
# generate the index properly speaking
cardDirs = ["internal", "external"]
sections, ignore = get_sections(cardDirs)
localIndexArr, orderArr = get_indexArr(sections)
index = generate_index_top()
# walk through the folders with all the cards
folderFlag, localIndexArr, whiteList = core(cardDirs, localroot, localIndexArr, orderArr, sections, ignore)
index, whitelist = core(["internal", "external"])
localIndexArr = sort_sections(sections, localIndexArr, orderArr)
index = generate_index(index, sections, localIndexArr)
save_index(index, "cards.md")
# write link whitelist out
whiteListFile = ".ci/whitelist.txt"
if Path(whiteListFile).exists():
with open(whiteListFile, 'r') as file :
for line in file:
whiteList += line
with open(whiteListFile, 'w') as file:
file.write(whiteList)
save_whitelist(whitelist, ".ci/whitelist.txt")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment