angular/adev/shared-docs
Shuaib Hasan Akib 27e183330e 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.
2025-10-27 09:29:37 +01:00
..
components fix(docs-infra): preserve shell class for multifile code blocks 2025-10-27 09:29:37 +01:00
directives docs(docs-infra): add rel="noopener" to external links with target="_blank" in ExternalLink directive (#64276) 2025-10-09 05:29:30 -07:00
icons refactor(docs-infra): migrate @angular/docs from dev-infra into adev directory (#57132) 2024-07-30 15:51:26 +00:00
interfaces fix(docs-infra): preserve shell class for multifile code blocks 2025-10-27 09:29:37 +01:00
pipeline fix(docs-infra): preserve shell class for multifile code blocks 2025-10-27 09:29:37 +01:00
pipes build: remove ts_project_interop infrastructure (#62908) 2025-07-31 09:12:58 +00:00
providers build: remove ts_project_interop infrastructure (#62908) 2025-07-31 09:12:58 +00:00
services docs(docs-infra): don't discard favorites in search history when reselected (#63906) 2025-09-22 14:22:19 +00:00
styles docs(docs-infra): Fix animation bug on iPhones (#64342) 2025-10-13 08:25:47 -07:00
testing build: remove ts_project_interop infrastructure (#62908) 2025-07-31 09:12:58 +00: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): Use intersectionObserver for TOC (#60166) 2025-03-05 12:09:45 -08:00
package.json build: update all non-major dependencies (#64399) 2025-10-14 09:25:42 -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