def METHOD_NAME(
    self: PythonSphinxMapper, root, source_suffix
):
    for _, obj in sphinx.util.status_iterator(
        self.objects.items(),
        bold("[AutoAPI] ") + "Rendering Data... ",
        length=len(self.objects),
        verbosity="INFO",
        stringify_func=(lambda x: x[0]),
    ):
        rst = obj.render(
            include_summaries=self.app.config.autoapi_include_summaries
        )
        if not rst:
            continue
        detail_dir = obj.include_dir(root=root)
        ensuredir(detail_dir)
        path = os.path.join(detail_dir, "%s%s" % ("index", source_suffix))
        open(path, "wt", encoding="utf-8").write(rst)
        if not hasattr(self.app, "created_api_files"):
            self.app.created_api_files = []
        self.app.created_api_files.append(path)
        if not obj.pathname.startswith("api"):
            path_in_rst = f"/{obj.pathname.replace(os.sep, '/')}/index"
            index_dir = os.path.dirname(detail_dir)
            index_file = os.path.join(index_dir, "index" + source_suffix)
            if not os.path.exists(index_file):
                try:
                    index_name = obj.summary.split("/")[-2]
                except IndexError:
                    continue
                index_rst = (
                    f"{index_name}\n"
                    f"{'=' * len(index_name)}\n\n"
                    f".. toctree::\n"
                    f"    :maxdepth: 1\n"
                    f"    :sorted:\n\n"
                )
                if index_file not in self.app.created_api_files:
                    self.app.created_api_files.append(index_file)
            else:
                index_file_contents = open(
                    index_file, "rt", encoding="utf-8"
                ).read()
                if path_in_rst in index_file_contents:
                    continue
                index_rst = ""
            index_rst += f"    {path_in_rst}\n"
            ensuredir(index_dir)
            open(index_file, "at+", encoding="utf-8").write(index_rst)
    if self.app.config.autoapi_add_toctree_entry:
        self._output_top_rst(root)