From b94f7d7274a6826f3330dbff5f7c5da3af0c9560 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 3 Jan 2024 08:52:45 +0100 Subject: [PATCH] chg: [mkdocs] add the authors box per cluster --- tools/mkdocs/generator.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/mkdocs/generator.py b/tools/mkdocs/generator.py index ce6b797..98b0acd 100644 --- a/tools/mkdocs/generator.py +++ b/tools/mkdocs/generator.py @@ -58,6 +58,17 @@ for f in galaxies_fnames: 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'