angular/adev/shared-docs
Shuaib Hasan Akib 8bdd98ef41 fix(docs-infra): prevent duplicate description rendering for block API entries
Block entries (@if, @defer, @for,@let, @switch) were falling back to the generic
DocsReference template, causing the description to appear twice - once in
the header section and once in the main content area.

This commit adds a dedicated rendering path for block entries:
- Creates BlockEntryRenderable type and associated transforms
- Adds BlockReference template that uses RawHtml directly
- Modifies HeaderApi to accept hideDescription prop
- Updates processing and rendering pipelines to handle blocks

The fix ensures block documentation displays only one description section
while preserving the existing behavior for all other API entry types.

Update adev/shared-docs/pipeline/api-gen/rendering/transforms/block-transforms.mts

Co-authored-by: Matthieu Riegler <kyro38@gmail.com>
2026-01-12 13:37:54 -08:00
..
components fix(forms): Rename signal form [field] to [formField] 2026-01-09 14:33:09 -08:00
directives docs(docs-infra): Modernize tests 2026-01-05 11:47:08 -05: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): Use category for signal forms guides 2026-01-07 09:35:19 -05:00
pipeline fix(docs-infra): prevent duplicate description rendering for block API entries 2026-01-12 13:37:54 -08:00
pipes build: remove ts_project_interop infrastructure (#62908) 2025-07-31 09:12:58 +00:00
providers docs(docs-infra): apply OnPush change detection and remove redundant root provider 2026-01-02 08:23:20 +01:00
services docs(docs-infra): avoid persistent AbortSignal listener in wait debounce in search 2026-01-09 09:38:07 -08:00
styles fix(docs-infra): improve symbolic green contrast for WCAG compliance 2026-01-12 08:50:33 -08:00
testing docs(docs-infra): Modernize tests 2026-01-05 11:47:08 -05:00
utils build: remove ts_project_interop infrastructure (#62908) 2025-07-31 09:12:58 +00: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: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
index.bzl docs: Add back script to generate example previews map (#60778) 2025-04-11 17:19:33 -04: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-01-02 08:31:03 +01: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