MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / _page_url

Function _page_url

scripts/docs/generate_rust_library_reference.py:188–193  ·  view source on GitHub ↗
(output_rel: Path)

Source from the content-addressed store, hash-verified

186
187
188def _page_url(output_rel: Path) -> str:
189 without_suffix = output_rel.with_suffix("")
190 parts = list(without_suffix.parts)
191 if parts[-1] == "index":
192 parts.pop()
193 return f"{BASE_URL}/{'/'.join(parts)}"
194
195
196def _needs_explicit_slug(page: Page) -> bool:

Callers 1

_discover_pagesFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected