MCPcopy Index your code
hub / github.com/idank/explainshell / _render_page

Function _render_page

tests/evals/render/render_eval.py:196–206  ·  view source on GitHub ↗
(mandoc_path: str, manpage: Path)

Source from the content-addressed store, hash-verified

194
195
196def _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
209def render_run(args: argparse.Namespace) -> int:

Callers 1

render_runFunction · 0.85

Calls 6

_repo_relativeFunction · 0.90
render_markdownFunction · 0.90
_path_stemFunction · 0.90
_mandoc_markdownFunction · 0.85
RenderedPageClass · 0.85
_metricsFunction · 0.85

Tested by

no test coverage detected