angular/adev/shared-docs/pipeline
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
..
api-gen fix(docs-infra): make absolute angular.dev hrefs relative in CLI option descriptions 2026-05-20 10:28:27 -07:00
examples docs(docs-infra): apply OnPush change detection and remove redundant root provider 2026-01-02 08:23:20 +01:00
guides 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
navigation build: remove ts_project_interop infrastructure (#62908) 2025-07-31 09:12:58 +00:00
shared fix(docs-infra): exempt form validator names from API auto-linking 2026-05-01 15:58:43 -07:00
tutorials fix(docs-infra): use public folder instead of assets folder for static files in adev tutorials 2026-01-15 10:59:25 -08:00
_guides.bzl docs(docs-infra): Throw build error on invalid guide links 2026-01-12 13:38:20 -08:00
_navigation.bzl build: migrate remaing esbuild and nodejs_binary usages to new toolchain (#62435) 2025-07-03 08:09:33 +00:00
_playground.bzl build: migrate remaing esbuild and nodejs_binary usages to new toolchain (#62435) 2025-07-03 08:09:33 +00:00
_previews.bzl docs: correctly look for examples in the bin_dir instead of execPath (#62632) 2025-07-14 14:49:16 -07:00
_stackblitz.bzl build: migrate remaing esbuild and nodejs_binary usages to new toolchain (#62435) 2025-07-03 08:09:33 +00:00
_tutorial.bzl build: migrate remaing esbuild and nodejs_binary usages to new toolchain (#62435) 2025-07-03 08:09:33 +00:00
_zip.bzl build: migrate remaing esbuild and nodejs_binary usages to new toolchain (#62435) 2025-07-03 08:09:33 +00:00
BUILD.bazel 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
esbuild.config.mjs build: move all rule/macro loading into adev/defaults.bzl and fix intellisense loading (#62627) 2025-07-14 15:47:05 -07:00