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

fix script for handbook links

parent 59117f63
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,10 @@ def build_link(title, href):
title = re.sub('[0-9.]', '', title).strip()
# remove sym link reference in href
if ('handbook-additional' in href):
href = href.replace('handbook-additional', 'handbook').strip()
elif ('handbook-annexes' in href):
href = href.replace('handbook-annexes', 'handbook').strip()
#if ('handbook-additional' in href):
# href = href.replace('handbook-additional', 'handbook').strip()
#elif ('handbook-annexes' in href):
# href = href.replace('handbook-annexes', 'handbook').strip()
# add relative url
href = "{{ '" + href + "' | relative_url }}"
......
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