MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / _write_item

Function _write_item

scripts/docs/generate_node_library_reference.py:392–396  ·  view source on GitHub ↗
(lines: list[str], item: ApiItem, *, disambiguate: bool = False)

Source from the content-addressed store, hash-verified

390
391
392def _write_item(lines: list[str], item: ApiItem, *, disambiguate: bool = False) -> None:
393 suffix = f" {KIND_LABELS[item.kind]}" if disambiguate else ""
394 lines.append(f"### `{item.name}`{suffix}\n\n")
395 _write_doc(lines, item.doc)
396 lines.append(f"```ts\n{item.declaration}\n```\n\n")
397
398
399def _write_module(output_dir: Path, module: ModuleDoc, position: int) -> None:

Callers 1

_write_moduleFunction · 0.85

Calls 1

_write_docFunction · 0.85

Tested by

no test coverage detected