Skip to content

Commit bd77cb0

Browse files
committed
Pass commands to filter to recursive call
1 parent e3970c1 commit bd77cb0

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
@@ -519,12 +519,16 @@ def _generate_nodes(
519519
)
520520
)
521521
else:
522-
commands = _filter_commands(ctx, commands)
523-
for command in commands:
522+
command_objs = _filter_commands(ctx, commands)
523+
for command in command_objs:
524524
parent = ctx if not semantic_group else ctx.parent
525525
section.extend(
526526
self._generate_nodes(
527-
command.name, command, parent=parent, nested=nested
527+
command.name,
528+
command,
529+
parent=parent,
530+
nested=nested,
531+
commands=commands,
528532
)
529533
)
530534

0 commit comments

Comments
 (0)