MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / _prune_version_entry

Function _prune_version_entry

scripts/docs/prefix_version_paths.py:251–257  ·  view source on GitHub ↗

Prune missing pages from a single version entry. Returns ``None`` when the entry no longer has any reachable content.

(entry: dict, docs_root: Path)

Source from the content-addressed store, hash-verified

249
250
251def _prune_version_entry(entry: dict, docs_root: Path) -> dict | None:
252 """Prune missing pages from a single version entry. Returns ``None`` when
253 the entry no longer has any reachable content."""
254 pruned = _prune_missing_pages(entry, docs_root)
255 if not pruned or not pruned.get("tabs"):
256 return None
257 return pruned
258
259
260def _flatten_pages(node: Any) -> list[str]:

Callers 1

_migrate_language_blockFunction · 0.85

Calls 2

_prune_missing_pagesFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected