(mandoc_path: str, manpage: Path)
| 194 | |
| 195 | |
| 196 | def _render_page(mandoc_path: str, manpage: Path) -> RenderedPage: |
| 197 | rel_path = _repo_relative(manpage) |
| 198 | markdown = _mandoc_markdown(mandoc_path, manpage) |
| 199 | html = render_markdown(markdown) |
| 200 | return RenderedPage( |
| 201 | path=rel_path, |
| 202 | stem=_path_stem(rel_path), |
| 203 | markdown=markdown, |
| 204 | html=html, |
| 205 | metrics=_metrics(rel_path, markdown, html), |
| 206 | ) |
| 207 | |
| 208 | |
| 209 | def render_run(args: argparse.Namespace) -> int: |
no test coverage detected