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

add output

parent f58fd613
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ index = ""
for d in dirs:
# set the header of the section
index += "\n### " + d.capitalize() + "\n"
index += "\n### " + d.replace("-", " ").capitalize() + "\n"
localIndexArr = ["\n"]
# walk through the folders with all the cards
......@@ -144,4 +144,6 @@ filedata = filedata.replace('[[ index ]]', index)
# Write the file out again
with open(indexFile, 'w') as file:
file.write(filedata)
\ No newline at end of file
file.write(filedata)
print("\n > New index generated and saved in " + indexFile)
\ 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