renderDocumentation

emlib.doctools.renderDocumentation(parsed, renderConfig, indentLevel)[source]

Renders the parsed function / method / property as documentation in the given format

Parameters:
  • parsed (ParsedDef) – the result of calling parseDef on a function or method

  • indentLevel (int) – the heading level to use as root level for the documentation

  • renderConfig (RenderConfig) – a RenderConfig

Return type:

str

Returns:

the generated documentation as string