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

Merge branch 'add-specifics-for-handbook' into 'develop'

Add specifics for handbook

See merge request R3/howto-cards!182
parents 87227812 85d5cb83
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
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