From b3c35e99f47cff1e4ad523094a44f12ca85c03fd Mon Sep 17 00:00:00 2001 From: Mainak Kundu Date: Fri, 26 Aug 2022 15:30:22 +0530 Subject: [PATCH] Fix doc --- doc/settings_rstgen.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/settings_rstgen.py b/doc/settings_rstgen.py index 38bf035e26f..44b839d40e4 100644 --- a/doc/settings_rstgen.py +++ b/doc/settings_rstgen.py @@ -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__":