Skip to content

Commit

Permalink
chg: [mkdocs] add the authors box per cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
adulau committed Jan 3, 2024
1 parent 197aafd commit b94f7d7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/mkdocs/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@
galaxy_output[cluster_filename] += "---\n"
galaxy_output[cluster_filename] += f'# {cluster["name"]}\n'
galaxy_output[cluster_filename] += f'{cluster["description"]}\n'

if 'authors' in cluster:
if cluster["authors"]:
galaxy_output[cluster_filename] += f'\n'
galaxy_output[cluster_filename] += f'??? info "Authors"\n'
galaxy_output[cluster_filename] += f'\n'
galaxy_output[cluster_filename] += f' | Authors and/or Contributors|\n'
galaxy_output[cluster_filename] += f' |----------------------------|\n'
for author in cluster["authors"]:
galaxy_output[cluster_filename] += f' |{author}|\n'

for value in cluster["values"]:
galaxy_output[cluster_filename] += f'## {value["value"]}\n'
galaxy_output[cluster_filename] += f'\n'
Expand Down

0 comments on commit b94f7d7

Please sign in to comment.