Fills out the documentation for a section given a model shape. :param section: The section to write the documentation to. :param shape: The shape of the operation. :type include: Dictionary where keys are parameter names and values are the shapes of the paramet
(self, section, shape, include=None, exclude=None)
| 16 | |
| 17 | class BaseParamsDocumenter(ShapeDocumenter): |
| 18 | def document_params(self, section, shape, include=None, exclude=None): |
| 19 | """Fills out the documentation for a section given a model shape. |
| 20 | |
| 21 | :param section: The section to write the documentation to. |
| 22 | |
| 23 | :param shape: The shape of the operation. |
| 24 | |
| 25 | :type include: Dictionary where keys are parameter names and |
| 26 | values are the shapes of the parameter names. |
| 27 | :param include: The parameter shapes to include in the documentation. |
| 28 | |
| 29 | :type exclude: List of the names of the parameters to exclude. |
| 30 | :param exclude: The names of the parameters to exclude from |
| 31 | documentation. |
| 32 | """ |
| 33 | history = [] |
| 34 | self.traverse_and_document_shape( |
| 35 | section=section, |
| 36 | shape=shape, |
| 37 | history=history, |
| 38 | name=None, |
| 39 | include=include, |
| 40 | exclude=exclude, |
| 41 | ) |
| 42 | |
| 43 | def document_recursive_shape(self, section, shape, **kwargs): |
| 44 | self._add_member_documentation(section, shape, **kwargs) |