Utilities for docstring processing.
Unknown Field: copyright | |
Copyright 2007-2022 by the Sphinx team, see AUTHORS. | |
Unknown Field: license | |
BSD, see LICENSE for details. |
Variable | field_list_item_re |
Undocumented |
Function | extract_metadata |
Undocumented |
Function | prepare_commentdoc |
Extract documentation comment lines (starting with #:) and return them as a list of lines. Returns an empty list if there is no documentation. |
Function | prepare_docstring |
Convert a docstring into lines of parseable reST. Remove common leading indentation, where the indentation of a given number of lines (usually just one) is ignored. |
Function | separate_metadata |
Separate docstring into metadata and others. |
Parameters | |
s:str | Undocumented |
Returns | |
List[ | Undocumented |
Convert a docstring into lines of parseable reST. Remove common leading indentation, where the indentation of a given number of lines (usually just one) is ignored.
Return the docstring as a list of lines usable for inserting into a docutils ViewList (used as argument of nested_parse().) An empty line is added to act as a separator between this docstring and following content.
Parameters | |
s:str | Undocumented |
ignore:int | Undocumented |
tabsize:int | Undocumented |
Returns | |
List[ | Undocumented |