Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
cpholguera committed Jun 29, 2024
1 parent 4e4e152 commit 355f0bb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/populate_masvs_categories_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ def yaml_to_md(input_dir, input_file, for_website):

if group_id_in_file == group_id:
with open(os.path.join(input_dir, file), "a") as f:
if for_website == False:
f.write('\n## Controls\n\n')
else:
f.write('\n## Controls\n\n')
if for_website == True:
f.write('\n<style> table { width: 100%; } </style>\n\n')
f.write('| ID | Control |\n')
f.write('|----|-----------|\n')
for control in controls:
if for_website == True:
control_id = f'[{control["id"]}](/MASVS/Controls/{control["id"]})'
control_id = f'[{control["id"]}](/MASVS/controls/{control["id"]})'
else:
control_id = control["id"]

Expand Down

0 comments on commit 355f0bb

Please sign in to comment.