chg: [tools] add logging for doc generation

pull/578/head
Alexandre Dulaunoy 2022-09-06 14:32:06 +02:00
parent e5c1d75b2f
commit c3ca851ed6
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import os
import json
import sys
module_types = ['expansion', 'export_mod', 'import_mod']
titles = ['Expansion Modules', 'Export Modules', 'Import Modules']
@ -17,6 +18,7 @@ def generate_doc(module_type, root_path, logo_path='logos'):
githubref = f'{githubpath}/{modulename}.py'
markdown.append(f'\n#### [{modulename}]({githubref})\n')
filename = os.path.join(current_path, filename)
print(f'Processing {filename}')
with open(filename, 'rt') as f:
definition = json.loads(f.read())
if 'logo' in definition: