angular/adev/shared-docs/pipeline/api-gen/rendering/transforms
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
..
block-transforms.mts fix(docs-infra): prevent duplicate description rendering for block API entries 2026-01-12 13:37:54 -08:00
class-transforms.mts docs: improve docs generation for namespaces (#64747) 2025-11-05 22:42:59 +00:00
cli-transforms.mts fix(docs-infra): make absolute angular.dev hrefs relative in CLI option descriptions 2026-05-20 10:28:27 -07:00
code-transforms.mts docs(docs-infra): Adds anchor links to class member headers for linking 2026-04-02 08:40:46 -07:00
constant-transforms.mts docs(docs-infra): Improve formatting of functions (#61154) 2025-05-16 13:58:35 +00:00
decorator-transforms.mts docs(docs-infra): Show API decorators docs 2026-01-12 09:41:25 -08:00
enum-transforms.mts docs: improve docs generation for namespaces (#64747) 2025-11-05 22:42:59 +00:00
format-code.mts docs(docs-infra): Improve formatting of functions (#61154) 2025-05-16 13:58:35 +00:00
function-transforms.mts docs(docs-infra): Show function args 2026-05-18 13:22:28 -07:00
initializer-api-functions-transform.mts docs(docs-infra): Improve formatting of functions (#61154) 2025-05-16 13:58:35 +00:00
interface-transforms.mts docs: improve docs generation for namespaces (#64747) 2025-11-05 22:42:59 +00:00
jsdoc-transforms.mts docs(docs-infra): Show function args 2026-05-18 13:22:28 -07:00
member-transforms.mts docs(docs-infra): Show API decorators docs 2026-01-12 09:41:25 -08:00
module-name.mts build: migrate adev shared-docs package to use ts_project (#61193) 2025-05-09 16:30:05 +00:00
params-transforms.mts docs(docs-infra): Show function args 2026-05-18 13:22:28 -07:00
reference-section-id.mts build: migrate adev shared-docs package to use ts_project (#61193) 2025-05-09 16:30:05 +00:00
repo.mts build: migrate adev shared-docs package to use ts_project (#61193) 2025-05-09 16:30:05 +00:00
type-alias-transforms.mts docs: improve docs generation for namespaces (#64747) 2025-11-05 22:42:59 +00:00
url-transforms.mts docs(docs-infra): share markdown rendering and highlighting code between api-gen and guides (#63357) 2025-08-25 15:33:55 -07:00