angular/adev/shared-docs/pipeline
Shuaib Hasan Akib e62da0d1c7 fix(docs-infra): preserve shell class for multifile code blocks
The ExampleViewer component was extracting only innerHTML from code
blocks in multifile examples, which lost the shell class applied by
the formatCode function. This caused the $ prompt to not appear for
shell commands in multifile blocks even when language="shell" was set.

Modified the Snippet interface to track shell language state and
updated getCodeSnippetsFromMultifileWrapper and getStandaloneCodeSnippet
methods to preserve the shell class. Updated example-viewer template
to conditionally apply the shell class to the code wrapper element.

Fixes inconsistency between standalone and multifile shell code blocks.

(cherry picked from commit 27e183330e)
2025-10-27 09:29:42 +01:00
..
api-gen docs(docs-infra): Extract multiple extends statements for interfaces (#64539) 2025-10-20 21:18:13 +00:00
examples build: adopt moduleResolution: "bundler" (#64125) 2025-09-29 14:20:23 -04:00
guides docs: add check for non-existing anchor (#64309) 2025-10-10 06:43:51 -07:00
navigation build: remove ts_project_interop infrastructure (#62908) 2025-07-31 09:12:58 +00:00
shared fix(docs-infra): preserve shell class for multifile code blocks 2025-10-27 09:29:42 +01:00
tutorials docs(docs-infra): Support linking to individual playground templates 2025-10-24 18:47:14 +02:00
_guides.bzl docs(docs-infra): auto-links to API entries (#63162) 2025-08-20 13:05:48 +00: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 build: move from using WORKSPACE to MODULE.bazel (#63246) 2025-08-20 08:26:17 +00: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