angular/adev/shared-docs/interfaces
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
..
algolia-config.ts refactor(docs-infra): migrate @angular/docs from dev-infra into adev directory (#57132) 2024-07-30 15:51:26 +00:00
BUILD.bazel docs(docs-infra): lift circular imports (#63186) 2025-08-19 07:58:45 +00:00
code-example.ts fix(docs-infra): preserve shell class for multifile code blocks 2025-10-27 09:29:37 +01:00
doc-content.ts refactor(docs-infra): migrate @angular/docs from dev-infra into adev directory (#57132) 2024-07-30 15:51:26 +00:00
docs-content-loader.ts feat(docs-infra): Add Navigation API adapter to adev (#60722) 2025-04-04 11:46:00 -07:00
environment.ts refactor(docs-infra): migrate @angular/docs from dev-infra into adev directory (#57132) 2024-07-30 15:51:26 +00:00
example-viewer-content-loader.ts refactor(docs-infra): migrate @angular/docs from dev-infra into adev directory (#57132) 2024-07-30 15:51:26 +00:00
index.ts refactor(docs-infra): migrate @angular/docs from dev-infra into adev directory (#57132) 2024-07-30 15:51:26 +00:00
navigation-item.ts docs: Introduce API category sorting (#63914) 2025-09-19 14:44:10 +00:00
search-results.ts docs(docs-infra): always include fragment in search results (#63866) 2025-09-17 14:56:31 +00:00
table-of-contents-item.ts docs(docs-infra): Use intersectionObserver for TOC (#60166) 2025-03-05 12:09:45 -08:00
tutorial.ts docs(docs-infra): Support linking to individual playground templates 2025-10-24 18:47:09 +02:00