angular/adev/shared-docs
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
..
components build: update cross-repo angular dependencies (main) 2026-05-12 16:41:38 -07:00
directives docs(docs-infra): use signals & improve types 2026-05-07 18:17:29 -06:00
icons refactor(docs-infra): migrate @angular/docs from dev-infra into adev directory (#57132) 2024-07-30 15:51:26 +00:00
interfaces docs(docs-infra): preserve navigation origin when clicking cross-category links 2026-04-07 09:46:18 -07:00
pipeline fix(docs-infra): make absolute angular.dev hrefs relative in CLI option descriptions 2026-05-20 10:28:27 -07:00
pipes docs(docs-infra): use signals & improve types 2026-05-07 18:17:29 -06:00
providers docs(docs-infra): apply OnPush change detection and remove redundant root provider 2026-01-02 08:23:20 +01:00
services docs: update guides to use @Service 2026-05-11 12:38:23 -07:00
styles docs(docs-infra): Show function args 2026-05-18 13:22:28 -07:00
testing docs(docs-infra): replace wait with debounce for search 2026-03-27 13:57:15 +01:00
utils docs(docs-infra): use signals & improve types 2026-05-07 18:17:29 -06:00
BUILD.bazel build: migrate all npm packages to use new rules_js based npm_package rule (#62954) 2025-08-05 19:08:45 +00:00
defaults.bzl build: update aspect_rules_js to 3.0.2 (#67518) 2026-03-11 13:37:33 -07:00
index.bzl docs(docs-infra): Throw build error on invalid guide links 2026-01-12 13:38:20 -08:00
index.ts docs(docs-infra): leverage the search on 404 2025-12-17 09:40:42 -08:00
package.json build: update all non-major dependencies 2026-05-01 15:57:16 -07:00
tsconfig-test.json build: remove ts_project_interop file (#63421) 2025-08-27 11:23:57 -07:00
tsconfig.json docs(docs-infra): enable strict templates 2025-10-24 15:23:26 +02:00