Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mkundu1 committed Aug 28, 2022
1 parent 95e6144 commit b3c35e9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/settings_rstgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,20 @@ def _populate_rst_from_settings(rst_dir, cls, version):
rst_list.append(rstpath)
if has_children:
for child in cls.child_names:
_populate_rst_from_settings(rst_dir, getattr(cls, child))
_populate_rst_from_settings(rst_dir, getattr(cls, child), version)

if has_commands:
for child in cls.command_names:
_populate_rst_from_settings(rst_dir, getattr(cls, child))
_populate_rst_from_settings(rst_dir, getattr(cls, child), version)

if has_arguments:
for child in cls.argument_names:
_populate_rst_from_settings(rst_dir, getattr(cls, child))
_populate_rst_from_settings(rst_dir, getattr(cls, child), version)

if has_named_object:
_populate_rst_from_settings(rst_dir, getattr(cls, "child_object_type"))
_populate_rst_from_settings(
rst_dir, getattr(cls, "child_object_type"), version
)


if __name__ == "__main__":
Expand Down

0 comments on commit b3c35e9

Please sign in to comment.