Read a wiki page's content. Returns None if not found.
(category: str, title: str)
| 177 | |
| 178 | |
| 179 | def read_page(category: str, title: str) -> str | None: |
| 180 | """Read a wiki page's content. Returns None if not found.""" |
| 181 | slug = _slug(title) |
| 182 | path = _page_path(category, slug) |
| 183 | if not path.exists(): |
| 184 | return None |
| 185 | return path.read_text() |
| 186 | |
| 187 | |
| 188 | def read_page_by_slug(slug: str) -> str | None: |
nothing calls this directly
no test coverage detected