angular/adev/shared-docs/pipeline/api-gen/rendering/test
Kam 745ee71c25 fix(docs-infra): make absolute angular.dev hrefs relative in CLI option descriptions
CLI option descriptions are sourced from `@angular/cli` schema JSON
files, several of which contain absolute `https://angular.dev/...` URLs
in their `description` text. Those URLs render with the external-link
icon and push preview users out to production when viewed on
`next.angular.dev` or other dev previews. The path bypasses the existing
`link.mts` ban on absolute angular.dev links because option descriptions
go through `marked.parse` directly, without `AdevDocsRenderer`. Rewrite
the rendered hrefs whose values begin with `https://angular.dev/` (or
the `http:` variant) to root-relative paths so the resulting anchors
route through Angular's Router and resolve against the active
deployment. Subdomains such as `next.angular.dev/...` are intentionally
not rewritten because they refer to genuinely different deployments.

Closes #68795
2026-05-20 10:28:27 -07:00
..
transforms docs(docs-infra): Validate case-sensitive API symbol links in @link 2026-04-27 17:01:40 -07:00
BUILD.bazel build: enable strict deps enforcement for ts_project (#63375) 2025-08-26 09:46:30 -07:00
cli.spec.mts fix(docs-infra): make absolute angular.dev hrefs relative in CLI option descriptions 2026-05-20 10:28:27 -07:00
fake-cli-entries.json fix(docs-infra): make absolute angular.dev hrefs relative in CLI option descriptions 2026-05-20 10:28:27 -07:00
fake-entries.json docs(docs-infra): Show function args 2026-05-18 13:22:28 -07:00
marked.spec.mts docs(docs-infra): Handle additional description format 2026-01-21 11:37:08 -08:00
renderable.spec.mts docs(docs-infra): Adds anchor links to class member headers for linking 2026-04-02 08:40:46 -07:00