Docs text
docs_text
Text renderer for ast_docs output.
Renders the :func:format_docs_json payload as compact human-readable
text for the LLM, mirroring the glyph/header conventions of the sibling
*_text renderers. Full-detail content (README, mkdocs, page bodies)
is reproduced verbatim — no truncation; the compaction is purely the
removal of JSON key/quote/escape overhead.
render_docs_text(data, detail)
Render docs data as compact text for a given detail level.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict[str, object]
|
Payload from :func: |
required |
detail
|
str
|
Detail level — |
required |
Returns:
| Type | Description |
|---|---|
str
|
Compact text rendering. Full bodies are reproduced verbatim. |