getOutputRelativePath
Computes the build-output-relative path for an internal documentation URL.
Import:
import { getOutputRelativePath } from '@mnaoumov/typescript-dev-toolkit/docs-site/link-check';Signature:
function getOutputRelativePath(targetUrl: URL, siteBaseUrl: string): stringParameters:
| Parameter | Type | Description |
|---|---|---|
targetUrl |
URL | The resolved absolute link URL (must be isInternalDocUrl). |
siteBaseUrl |
string | The absolute base URL the site is served from (with a trailing slash). |
Returns: string — The decoded path relative to the build-output root.