(self, client_methods)
| 123 | section.style.end_codeblock() |
| 124 | |
| 125 | def _add_client_methods(self, client_methods): |
| 126 | for method_name in sorted(client_methods): |
| 127 | # Create a new DocumentStructure for each client method and add contents. |
| 128 | method_doc_structure = DocumentStructure( |
| 129 | method_name, target='html' |
| 130 | ) |
| 131 | self._add_client_method( |
| 132 | method_doc_structure, method_name, client_methods[method_name] |
| 133 | ) |
| 134 | # Write client methods in individual/nested files. |
| 135 | # Path: <root>/reference/services/<service>/client/<method_name>.rst |
| 136 | client_dir_path = os.path.join( |
| 137 | self._root_docs_path, self._service_name, 'client' |
| 138 | ) |
| 139 | method_doc_structure.write_to_file(client_dir_path, method_name) |
| 140 | |
| 141 | def _add_client_method(self, section, method_name, method): |
| 142 | section.add_title_section(method_name) |
no test coverage detected