Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
howto-cards
Commits
08c2c906
Verified
Commit
08c2c906
authored
Feb 18, 2020
by
Laurent Heirendt
✈
Browse files
WIP generation script
parent
4248b6de
Changes
1
Hide whitespace changes
Inline
Side-by-side
.ci/generateIndex.py
View file @
08c2c906
...
...
@@ -104,12 +104,16 @@ for d in dirs:
# open file and get the title after the header
count
=
0
title
=
""
bp
=
9
with
open
(
fileName
,
'r'
)
as
f
:
for
line
in
f
:
count
+=
1
if
count
==
9
:
title
=
line
break
if
count
==
bp
:
if
len
(
line
)
>
2
:
title
=
line
break
else
:
bp
+=
1
# remove first and last chars
title
=
title
.
rstrip
(
"
\n\r
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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