(parent: tuple[str, ...], depth: int)
| 335 | by_parent.setdefault(parent, []).append(module) |
| 336 | |
| 337 | def write_group(parent: tuple[str, ...], depth: int) -> None: |
| 338 | for module in sorted(by_parent.get(parent, []), key=_sibling_sort_key): |
| 339 | indent = " " * depth |
| 340 | lines.append(f"{indent}- [`{_leaf_title(module)}`]({_module_url(module)})") |
| 341 | if module.summary: |
| 342 | lines.append(f": {module.summary}") |
| 343 | lines.append("\n") |
| 344 | write_group(tuple(_nav_parts(module)), depth + 1) |
| 345 | |
| 346 | write_group((), 0) |
| 347 | (output_dir / "index.mdx").write_text("".join(lines), encoding="utf-8") |
no test coverage detected