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

Function _heading_text

scripts/docs/generate_rust_library_reference.py:287–291  ·  view source on GitHub ↗
(node: Tag)

Source from the content-addressed store, hash-verified

285
286
287def _heading_text(node: Tag) -> str:
288 for removable in node.select(".anchor, .doc-anchor, .src, button"):
289 removable.decompose()
290 text = _clean_text(node.get_text(" ", strip=True))
291 return re.sub(r"_\s+", "_", text)
292
293
294def _signature_link_target(page: Page, href: str, pages_by_html: dict[Path, Page]) -> str | None:

Callers 2

_block_markdownFunction · 0.85
_page_titleFunction · 0.85

Calls 1

_clean_textFunction · 0.85

Tested by

no test coverage detected