def get_pkgdocs(self):
import sys<EOL>self.info_modules = {}<EOL>self._init_info_modules(None)<EOL>titles = []<EOL>symbols = []<EOL>for package_name, info_module in self.info_modules.items():<EOL><INDENT>global_symbols = getattr(info_module, '<STR_LIT>', [])<EOL>fullname = self.parent_name +'<STR_LIT:.>'+ package_name<EOL>note = '<STR_LIT>'<EOL>if fullname not in sys.modules:<EOL><INDENT>note = '<STR_LIT>'<EOL><DEDENT>titles.append((fullname, self._get_doc_title(info_module) + note))<EOL>if global_symbols:<EOL><INDENT>symbols.append((package_name, '<STR_LIT:U+002CU+0020>'.join(global_symbols)))<EOL><DEDENT><DEDENT>retstr = self._format_titles(titles) +'<STR_LIT>'<EOL>if symbols:<EOL><INDENT>retstr += """<STR_LIT>""""""<STR_LIT>""" +self._format_titles(symbols, '<STR_LIT>')<EOL><DEDENT>return retstr<EOL>
Return documentation summary of subpackages.