Prune missing pages from a single version entry. Returns ``None`` when the entry no longer has any reachable content.
(entry: dict, docs_root: Path)
| 249 | |
| 250 | |
| 251 | def _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 | |
| 260 | def _flatten_pages(node: Any) -> list[str]: |
no test coverage detected