class documentation

class ParsedPlaintextDocstring(ParsedDocstring): (source)

Constructor: ParsedPlaintextDocstring(text)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method to_node Translate this docstring to a nodes.document.
Method to_stan Translate this docstring to a Stan tree.
Property has_body Does this docstring have a non-empty body?
Instance Variable _document Undocumented
Instance Variable _text Undocumented

Inherited from ParsedDocstring:

Method get_summary Returns the summary of this docstring.
Method get_toc The table of contents of the docstring if titles are defined or None.
Instance Variable fields A list of Fields, each of which encodes a single field. The field's bodies are encoded as ParsedDocstrings.
Instance Variable _stan Undocumented
Instance Variable _summary Undocumented
def __init__(self, text: str): (source)
def to_node(self) -> nodes.document: (source)

Translate this docstring to a nodes.document.

Returns
nodes.documentThe docstring presented as a nodes.document.
Note
Some ParsedDocstring subclasses do not support docutils nodes. This method might raise NotImplementedError in such cases. (i.e. pydoctor.epydoc.markup._types.ParsedTypeDocstring)
def to_stan(self, docstring_linker: DocstringLinker) -> Tag: (source)

Translate this docstring to a Stan tree.

Parameters
docstring_linker:DocstringLinkerAn HTML translator for crossreference links into and out of the docstring.
Returns
TagThe docstring presented as a stan tree.
Raises
ExceptionIf something went wrong. Callers should generally catch Exception when calling to_stan().
Note
The default implementation relies on functionalities provided by node2stan.node2stan and ParsedDocstring.to_node().

Does this docstring have a non-empty body?

The body is the part of the docstring that remains after the fields have been split off.

Undocumented

Undocumented