Skip to content

Commit

Permalink
fixes #283
Browse files Browse the repository at this point in the history
  • Loading branch information
o-smirnov committed Apr 30, 2024
1 parent a2de44e commit cc73754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stimela/commands/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ def load_recipe(name: str, section: Dict):
subtree = top_tree.add("Recipes:")
table = Table.grid("", "", padding=(0,2))
for name, recipe in stimela.CONFIG.lib.recipes.items():
table.add_row(f"[bold]{name}[/bold]", recipe.info)
table.add_row(f"[bold]{name}[/bold]", getattr(recipe, 'info', ''))
subtree.add(table)

if stimela.CONFIG.cabs:
subtree = top_tree.add("Cabs:")
table = Table.grid("", "", padding=(0,2))
for name, cab in stimela.CONFIG.cabs.items():
table.add_row(f"[bold]{name}[/bold]", cab.info)
table.add_row(f"[bold]{name}[/bold]", getattr(cab, 'info', ''))
subtree.add(table)

rich_print(top_tree)
Expand Down

0 comments on commit cc73754

Please sign in to comment.