mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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.
This commit is contained in:
parent
67d3c2529f
commit
68aa83e8cf
14 changed files with 45 additions and 35 deletions
|
|
@ -34,7 +34,8 @@ In this case:
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
@ -44,6 +45,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
|||
}
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
|
|
@ -73,7 +73,8 @@ username: string = 'Angelino';
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
|
|||
|
|
@ -58,7 +58,8 @@ class MyComponent {}
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
@ -68,6 +69,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
|||
}
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
|
|
@ -36,18 +36,17 @@ When binding to `attr.`, `class.`, or `style.`, ensure you use the Angular templ
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
"checks": {
|
||||
"textAttributeNotBinding": "suppress"
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
"checks": {
|
||||
"textAttributeNotBinding": "suppress"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
|
|
@ -44,7 +44,8 @@ class MyComponent {
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
@ -54,6 +55,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
|||
}
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
|
|
@ -33,7 +33,8 @@ move this to the value assignment of the binding.
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
@ -43,6 +44,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
|||
}
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
|
|
@ -65,7 +65,8 @@ class MyComponent {
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
@ -75,6 +76,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
|||
}
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
|
|
@ -66,7 +66,8 @@ class MyComponent {}
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
@ -76,6 +77,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
|||
}
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@ class MyComponent {
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
@ -52,6 +53,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
|||
}
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
|
|
@ -46,7 +46,8 @@ class MyComponent {
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
@ -56,6 +57,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
|||
}
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@ class AwesomeCheckbox {}
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
@ -40,6 +41,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
|||
}
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
|
|
@ -46,7 +46,8 @@ class Items {
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
@ -56,6 +57,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
|||
}
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class MyComponent {}
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
@ -53,6 +53,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
|||
}
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class MyComponent {
|
|||
|
||||
This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
||||
|
||||
<docs-code language="json">
|
||||
```json
|
||||
{
|
||||
"angularCompilerOptions": {
|
||||
"extendedDiagnostics": {
|
||||
|
|
@ -56,6 +56,6 @@ This diagnostic can be disabled by editing the project's `tsconfig.json` file:
|
|||
}
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
```
|
||||
|
||||
See [extended diagnostic configuration](/extended-diagnostics#configuration) for more info.
|
||||
|
|
|
|||
Loading…
Reference in a new issue