Skip to content

Commit

Permalink
Rearanged videos and team names of Superteams
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianH99 committed Aug 6, 2024
1 parent 5b5786b commit 69c3303
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/source/_ext/populate_team_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,20 +183,23 @@ 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")

for team in superteam['teams']:
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")

Expand Down

0 comments on commit 69c3303

Please sign in to comment.