angular/adev/shared-docs/pipeline/api-gen
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
..
extraction docs(docs-infra): fix @example in class members (#64249) 2025-10-06 15:11:31 -04:00
manifest fix(docs-infra): support providing links to multiple symbols within a single line of a code block 2026-01-20 09:35:33 -08:00
rendering fix(docs-infra): make absolute angular.dev hrefs relative in CLI option descriptions 2026-05-20 10:28:27 -07:00
test build: migrate adev shared-docs package to use ts_project (#61193) 2025-05-09 16:30:05 +00:00
BUILD.bazel build: update to the latest version of devinfra and rename npm2 workspace (#63093) 2025-08-11 10:35:32 -07:00
generate_api_docs.bzl docs: update API generation to include repo name (#61130) 2025-05-06 14:07:31 -07:00
package.json build: update api-gen to work with compiler as ts_project (#61566) 2025-05-29 14:39:10 -04:00