Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
howto-cards
Commits
13c0e680
Commit
13c0e680
authored
Dec 04, 2020
by
cylon-x
🤖
Browse files
Merge branch 'develop' into 'master'
[release] Regular merge of develop See merge request
!183
parents
1e1c626d
dbb1a896
Pipeline
#35081
passed with stages
in 2 minutes and 55 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.ci/generateIndex.py
View file @
13c0e680
...
...
@@ -9,12 +9,18 @@ def line_prepender(filename, line):
f
.
write
(
line
.
rstrip
(
'
\r\n
'
)
+
'
\n
'
+
content
)
def
build_link
(
title
,
href
):
# strip the number of the title
title
=
re
.
sub
(
'[0-9.]'
,
''
,
title
).
strip
()
return
f
'
\t\t\t
<li><a href="
{
href
}
">
{
title
}
</a></li>
\n
'
def
build_section_start
(
title
,
shortcut
):
title
=
title
.
replace
(
"Gdpr"
,
"GDPR"
)
title
=
title
.
replace
(
"Handbook"
,
"PI Handbook"
)
title
=
title
.
replace
(
"Handbook:1 general"
,
"Handbook"
)
title
=
title
.
replace
(
"Handbook:2 additional"
,
"Handbook - PI/Supervisor specifics"
)
title
=
title
.
replace
(
"Handbook:3 annexes"
,
"Handbook - Annexes"
)
title
=
title
.
replace
(
"Covid 19"
,
"COVID-19"
)
return
f
'
\n\t
<div class="index-box" id="
{
shortcut
}
">
\n\t\t
<h3>
{
title
}
</h3>
\n\t\t
<ul>
\n
'
...
...
@@ -65,7 +71,7 @@ localroot = os.getcwd()
# generate the index properly speaking
cardDirs
=
[
"internal"
,
"external"
,
"policies"
]
cardDirs
=
[
"internal"
,
"external"
,
"policies"
,
"handbook-general"
,
"handbook-additional"
,
"handbook-annexes"
]
sections
=
[]
# determine first the directories
...
...
.gitignore
View file @
13c0e680
...
...
@@ -38,3 +38,7 @@ policies
env/.jekyll-cache/
env/Gemfile.lock
env/_site/
handbook/
internal/handbook:1-general
internal/handbook:2-additional
internal/handbook:3-annexes
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