From 69c3303aca4865e3a55ad33371c1a2abc43bc87a Mon Sep 17 00:00:00 2001 From: ChristianH99 Date: Tue, 6 Aug 2024 12:36:01 +0200 Subject: [PATCH] Rearanged videos and team names of Superteams --- docs/source/_ext/populate_team_data.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/source/_ext/populate_team_data.py b/docs/source/_ext/populate_team_data.py index 596577d..9354c74 100644 --- a/docs/source/_ext/populate_team_data.py +++ b/docs/source/_ext/populate_team_data.py @@ -183,6 +183,9 @@ def run(self): content.append(f"{superteam['name']}") content.append( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n") + if superteam.get('introduction'): + content.append(f" `Introduction <{superteam['introduction']}>`__\n") + if superteam.get('performance'): content.append(f" `Performance <{superteam['performance']}>`__\n") @@ -190,13 +193,13 @@ def run(self): team_country = get_team_country(team, data) team_label = team.replace(' ', '_') - content.append(f" :ref:`teams_{id}_{team_label}` ({team_country})\n") - - if superteam.get('introduction'): - content.append(f" `Introduction <{superteam['introduction']}>`__\n") + extra_blanks = "" - if superteam.get('performance'): - content.append(f" `Performance <{superteam['performance']}>`__\n") + if superteam.get('introduction') or superteam.get('performance'): + extra_blanks = " " + + content.append(f" {extra_blanks}:ref:`teams_{id}_{team_label}` ({team_country})\n") + content.append( "\n")