Verified Commit ede79bd3 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

fix script for handbook links

parent 59117f63
Pipeline #48015 passed with stages
in 2 minutes and 54 seconds
......@@ -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 }}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment