Skip to content

Commit 1371d00

Browse files
committed
Pass commands to filter to recursive call
1 parent e8cf016 commit 1371d00

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

sphinx_click/ext.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,12 +533,16 @@ def _generate_nodes(
533533
)
534534
)
535535
else:
536-
commands = _filter_commands(ctx, commands)
537-
for command in commands:
536+
command_objs = _filter_commands(ctx, commands)
537+
for command in command_objs:
538538
parent = ctx if not semantic_group else ctx.parent
539539
section.extend(
540540
self._generate_nodes(
541-
command.name, command, parent=parent, nested=nested
541+
command.name,
542+
command,
543+
parent=parent,
544+
nested=nested,
545+
commands=commands,
542546
)
543547
)
544548

0 commit comments

Comments
 (0)