Skip to content

Commit 5dfcb17

Browse files
committed
chg: [doc generator] if logo is missing just skip
1 parent d87b2b8 commit 5dfcb17

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

documentation/generate.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ def _generate_doc(module_type: str, logo_path: str = "logos") -> list[str]:
7171
if module_name_pretty == "":
7272
module_name_pretty = module_name
7373
markdown.append(f"\n#### [{module_name_pretty}]({gh_ref})\n")
74-
if module_info["logo"] != "":
75-
logo = os.path.join(logo_path, module_info.pop("logo"))
76-
markdown.append(f"\n<img src={logo} height=60>\n")
74+
if 'logo' in module_info:
75+
if module_info["logo"] != "":
76+
logo = os.path.join(logo_path, module_info.pop("logo"))
77+
markdown.append(f"\n<img src={logo} height=60>\n")
7778
if "description" in module_info:
7879
markdown.append(f"\n{module_info.pop('description')}\n")
7980
markdown.append(f"[[source code]({gh_ref})]\n")

0 commit comments

Comments
 (0)