Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Gitlab will go into maintenance Friday 3rd February from 9:00 to 10:00
Open sidebar
R3
howto-cards
Commits
a0209cc3
Verified
Commit
a0209cc3
authored
Feb 18, 2020
by
Laurent Heirendt
✈
Browse files
add output
parent
f58fd613
Changes
1
Hide whitespace changes
Inline
Side-by-side
generateIndex.py
View file @
a0209cc3
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment