Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
R3
howto-cards
Commits
1e1c626d
Commit
1e1c626d
authored
Nov 10, 2020
by
Laurent Heirendt
✈
Browse files
Merge branch 'develop' into 'master'
Develop See merge request
!181
parents
006c0e1a
87227812
Pipeline
#34147
passed with stages
in 2 minutes and 1 second
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
.ci/generateIndex.py
.ci/generateIndex.py
+3
-3
.gitignore
.gitignore
+3
-0
index.md
index.md
+5
-5
No files found.
.ci/generateIndex.py
View file @
1e1c626d
...
@@ -11,13 +11,13 @@ def line_prepender(filename, line):
...
@@ -11,13 +11,13 @@ def line_prepender(filename, line):
def
build_link
(
title
,
href
):
def
build_link
(
title
,
href
):
return
f
'
\t\t\t
<li><a href="
{
href
}
">
{
title
}
</a></li>
\n
'
return
f
'
\t\t\t
<li><a href="
{
href
}
">
{
title
}
</a></li>
\n
'
def
build_section_start
(
title
):
def
build_section_start
(
title
,
shortcut
):
title
=
title
.
replace
(
"Gdpr"
,
"GDPR"
)
title
=
title
.
replace
(
"Gdpr"
,
"GDPR"
)
title
=
title
.
replace
(
"Handbook"
,
"PI Handbook"
)
title
=
title
.
replace
(
"Handbook"
,
"PI Handbook"
)
title
=
title
.
replace
(
"Covid 19"
,
"COVID-19"
)
title
=
title
.
replace
(
"Covid 19"
,
"COVID-19"
)
return
f
'
\n\t
<div class="index-box">
\n\t\t
<h3>
{
title
}
</h3>
\n\t\t
<ul>
\n
'
return
f
'
\n\t
<div class="index-box"
id="
{
shortcut
}
"
>
\n\t\t
<h3>
{
title
}
</h3>
\n\t\t
<ul>
\n
'
def
build_section_end
():
def
build_section_end
():
return
"
\t\t
</ul>
\n\t
</div>"
return
"
\t\t
</ul>
\n\t
</div>"
...
@@ -176,7 +176,7 @@ print(localIndexArr)
...
@@ -176,7 +176,7 @@ print(localIndexArr)
# determine the index
# determine the index
k
=
0
k
=
0
for
s
in
sections
:
for
s
in
sections
:
index
+=
build_section_start
(
s
.
replace
(
"-"
,
" "
).
capitalize
())
index
+=
build_section_start
(
s
.
replace
(
"-"
,
" "
).
capitalize
()
,
s
)
index
+=
''
.
join
(
localIndexArr
[
k
])
index
+=
''
.
join
(
localIndexArr
[
k
])
index
+=
build_section_end
()
index
+=
build_section_end
()
k
+=
1
k
+=
1
...
...
.gitignore
View file @
1e1c626d
...
@@ -35,3 +35,6 @@ __pycache__/
...
@@ -35,3 +35,6 @@ __pycache__/
contribute.egg-info/
contribute.egg-info/
policies
policies
.tmp
.tmp
env/.jekyll-cache/
env/Gemfile.lock
env/_site/
index.md
View file @
1e1c626d
...
@@ -17,7 +17,7 @@ The How-to cards are intended to provide practical guidance in implementing Data
...
@@ -17,7 +17,7 @@ The How-to cards are intended to provide practical guidance in implementing Data
<div
class=
"index-box-container"
>
<div
class=
"index-box-container"
>
<div class="index-box">
<div class="index-box"
id="access"
>
<h3>Access</h3>
<h3>Access</h3>
<ul>
<ul>
<li><a href="external/access/harrenhal-access">HARRENHAL access</a></li>
<li><a href="external/access/harrenhal-access">HARRENHAL access</a></li>
...
@@ -27,7 +27,7 @@ The How-to cards are intended to provide practical guidance in implementing Data
...
@@ -27,7 +27,7 @@ The How-to cards are intended to provide practical guidance in implementing Data
</ul>
</ul>
</div>
</div>
<div class="index-box">
<div class="index-box"
id="contribute"
>
<h3>Contribute</h3>
<h3>Contribute</h3>
<ul>
<ul>
<li><a href="external/contribute/add-edit-card">How to add or edit a howto card</a></li>
<li><a href="external/contribute/add-edit-card">How to add or edit a howto card</a></li>
...
@@ -37,7 +37,7 @@ The How-to cards are intended to provide practical guidance in implementing Data
...
@@ -37,7 +37,7 @@ The How-to cards are intended to provide practical guidance in implementing Data
</ul>
</ul>
</div>
</div>
<div class="index-box">
<div class="index-box"
id="exchange-channels"
>
<h3>Exchange channels</h3>
<h3>Exchange channels</h3>
<ul>
<ul>
<li><a href="external/exchange-channels/asperaweb">AsperaWEB Quick Guide</a></li>
<li><a href="external/exchange-channels/asperaweb">AsperaWEB Quick Guide</a></li>
...
@@ -46,7 +46,7 @@ The How-to cards are intended to provide practical guidance in implementing Data
...
@@ -46,7 +46,7 @@ The How-to cards are intended to provide practical guidance in implementing Data
</ul>
</ul>
</div>
</div>
<div class="index-box">
<div class="index-box"
id="general"
>
<h3>General</h3>
<h3>General</h3>
<ul>
<ul>
<li><a href="external/general/attend-webex">Attend the LCSB Team Meeting online (webex)</a></li>
<li><a href="external/general/attend-webex">Attend the LCSB Team Meeting online (webex)</a></li>
...
@@ -54,7 +54,7 @@ The How-to cards are intended to provide practical guidance in implementing Data
...
@@ -54,7 +54,7 @@ The How-to cards are intended to provide practical guidance in implementing Data
</ul>
</ul>
</div>
</div>
<div class="index-box">
<div class="index-box"
id="integrity"
>
<h3>Integrity</h3>
<h3>Integrity</h3>
<ul>
<ul>
<li><a href="external/integrity/checksum">Ensuring Integrity of Data Files with Checksums</a></li>
<li><a href="external/integrity/checksum">Ensuring Integrity of Data Files with Checksums</a></li>
...
...
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