Skip to content

Commit 68aa83e

Browse files
MeAkibkirjs
authored andcommitted
docs: format JSON examples and replace <docs-code> with fenced code blocks
Replaced <docs-code language="json" header=".postcssrc.json"> with fenced JSON code blocks using ```json {header: '.postcssrc.json'} for improved readability and consistency across documentation.
1 parent 67d3c25 commit 68aa83e

14 files changed

Lines changed: 45 additions & 35 deletions

File tree

adev/src/content/reference/extended-diagnostics/NG8101.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ In this case:
3434

3535
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
3636

37-
<docs-code language="json">
37+
```json
38+
3839
{
3940
"angularCompilerOptions": {
4041
"extendedDiagnostics": {
@@ -44,6 +45,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
4445
}
4546
}
4647
}
47-
</docs-code>
48+
```
4849

4950
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

adev/src/content/reference/extended-diagnostics/NG8102.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ username: string = 'Angelino';
7373

7474
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
7575

76-
<docs-code language="json">
76+
```json
77+
7778
{
7879
"angularCompilerOptions": {
7980
"extendedDiagnostics": {

adev/src/content/reference/extended-diagnostics/NG8103.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ class MyComponent {}
5858

5959
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
6060

61-
<docs-code language="json">
61+
```json
62+
6263
{
6364
"angularCompilerOptions": {
6465
"extendedDiagnostics": {
@@ -68,6 +69,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
6869
}
6970
}
7071
}
71-
</docs-code>
72+
```
7273

7374
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

adev/src/content/reference/extended-diagnostics/NG8104.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,17 @@ When binding to `attr.`, `class.`, or `style.`, ensure you use the Angular templ
3636

3737
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
3838

39-
<docs-code language="json">
39+
```json
4040

4141
{
42-
"angularCompilerOptions": {
43-
"extendedDiagnostics": {
44-
"checks": {
45-
"textAttributeNotBinding": "suppress"
42+
"angularCompilerOptions": {
43+
"extendedDiagnostics": {
44+
"checks": {
45+
"textAttributeNotBinding": "suppress"
46+
}
47+
}
48+
}
4649
}
47-
}
48-
}
49-
}
50-
51-
</docs-code>
50+
```
5251

5352
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

adev/src/content/reference/extended-diagnostics/NG8105.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ class MyComponent {
4444

4545
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
4646

47-
<docs-code language="json">
47+
```json
48+
4849
{
4950
"angularCompilerOptions": {
5051
"extendedDiagnostics": {
@@ -54,6 +55,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
5455
}
5556
}
5657
}
57-
</docs-code>
58+
```
5859

5960
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

adev/src/content/reference/extended-diagnostics/NG8106.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ move this to the value assignment of the binding.
3333

3434
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
3535

36-
<docs-code language="json">
36+
```json
37+
3738
{
3839
"angularCompilerOptions": {
3940
"extendedDiagnostics": {
@@ -43,6 +44,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
4344
}
4445
}
4546
}
46-
</docs-code>
47+
```
4748

4849
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

adev/src/content/reference/extended-diagnostics/NG8107.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ class MyComponent {
6565

6666
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
6767

68-
<docs-code language="json">
68+
```json
69+
6970
{
7071
"angularCompilerOptions": {
7172
"extendedDiagnostics": {
@@ -75,6 +76,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
7576
}
7677
}
7778
}
78-
</docs-code>
79+
```
7980

8081
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

adev/src/content/reference/extended-diagnostics/NG8108.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ class MyComponent {}
6666

6767
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
6868

69-
<docs-code language="json">
69+
```json
70+
7071
{
7172
"angularCompilerOptions": {
7273
"extendedDiagnostics": {
@@ -76,6 +77,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
7677
}
7778
}
7879
}
79-
</docs-code>
80+
```
8081

8182
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

adev/src/content/reference/extended-diagnostics/NG8109.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ class MyComponent {
4242

4343
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
4444

45-
<docs-code language="json">
45+
```json
46+
4647
{
4748
"angularCompilerOptions": {
4849
"extendedDiagnostics": {
@@ -52,6 +53,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
5253
}
5354
}
5455
}
55-
</docs-code>
56+
```
5657

5758
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

adev/src/content/reference/extended-diagnostics/NG8111.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ class MyComponent {
4646

4747
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
4848

49-
<docs-code language="json">
49+
```json
50+
5051
{
5152
"angularCompilerOptions": {
5253
"extendedDiagnostics": {
@@ -56,6 +57,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
5657
}
5758
}
5859
}
59-
</docs-code>
60+
```
6061

6162
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.

0 commit comments

Comments
 (0)