(output_rel: Path)
| 186 | |
| 187 | |
| 188 | def _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 | |
| 196 | def _needs_explicit_slug(page: Page) -> bool: |