Skip to content

Commit

Permalink
fix(docs-infra): add shell to the list of code-example languages re…
Browse files Browse the repository at this point in the history
…cognized as cli commands (#45551) (#45563)

Previously, only `language="sh"` and `language="bash"` would be
recognized (and formatted) as cli commands in `<code-example>`.

This commit adds `shell` to the list of languages recognized as cli
commands.

(NOTE: This will fix the [CI failures][1] in #45325.)

[1]: https://circleci.com/gh/angular/angular/1145559

PR Close #45551

PR Close #45563
  • Loading branch information
gkalpak authored and thePunderWoman committed Apr 8, 2022
1 parent 208d819 commit 2144b99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions aio/src/styles/2-modules/code/_code-theme.scss
Expand Up @@ -13,6 +13,7 @@
}

// TERMINAL / SHELL TEXT STYLES
&[language="shell"],
&[language="sh"],
&[language="bash"] {
background-color: constants.$darkgray;
Expand Down Expand Up @@ -201,6 +202,7 @@
/* SHELL / TERMINAL CODE BLOCKS */

code-example {
&[language="shell"],
&[language="sh"],
&[language="bash"] {
.pnk,
Expand Down
4 changes: 3 additions & 1 deletion aio/src/styles/_print.scss
Expand Up @@ -105,7 +105,9 @@
}

code-example {
&[language=sh], &[language=bash] {
&[language=shell],
&[language=sh],
&[language=bash] {
background: none;

.pnk,
Expand Down

0 comments on commit 2144b99

Please sign in to comment.