diff --git a/.ci/generateIndex.py b/.ci/generateIndex.py index 8b33b387646a1581c68b2001f7a368c66ab495df..ce9fcd21e0f3bf24b2cd8473df5fd12230004b9f 100644 --- a/.ci/generateIndex.py +++ b/.ci/generateIndex.py @@ -11,13 +11,11 @@ def line_prepender(filename, line): def build_link(title, href): # strip the number of the title - if ('handbook-1-general' in href) or ('handbook-2-additional' in href) or ('handbook-3-annexes' in href): + if ('handbook' in href) or ('handbook-additional' in href) or ('handbook-annexes' in href): title = re.sub('[0-9.]', '', title).strip() # remove sym link reference in href - if ('handbook-1-general' in href): - href = href.replace('handbook-1-general', 'handbook').strip() - elif ('handbook-2-additional' in href): + if ('handbook-2-additional' in href): href = href.replace('handbook-2-additional', 'handbook').strip() elif ('handbook-3-annexes' in href): href = href.replace('handbook-3-annexes', 'handbook').strip()