Skip to content

Commit

Permalink
Merge pull request #131 from ma10/fix-yaml2rst-toollist-20231106
Browse files Browse the repository at this point in the history
yaml2rst.py: ツールごとのチェック方法のファイルが適切に生成されないことがある問題を修正
  • Loading branch information
ma10 authored Nov 6, 2023
2 parents 77230aa + d2121ad commit 09dbbc1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/yaml2rst/yaml2rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ def main():

if 'techniques' in procedure:
procedure_str_obj['techniques'] = []
check['checkTools'] = []
if 'checkTools' not in check:
check['checkTools'] = []
for technique in procedure['techniques']:
if technique['tool'] in CHECK_TOOLS:
tool_basename = technique['tool']
Expand Down Expand Up @@ -317,10 +318,8 @@ def main():
})

category_pages[gl['category']]['guidelines'].append(gl_str)

if len(gl['examples']):
if len(gl['examples']) > 0:
build_examples.extend(gl['examples'])

build_examples = uniq(build_examples)

os.makedirs(os.path.join(os.getcwd(), DESTDIR), exist_ok=True)
Expand Down

0 comments on commit 09dbbc1

Please sign in to comment.