Skip to content

Commit a2aa8fe

Browse files
MeAkibAndrewKushnir
authored andcommitted
docs: format CLI builder JSON examples using fenced blocks
Replaces custom docs-code components with fenced ```json``` blocks for CLI builder examples, improving readability, consistency, and copy support across the documentation. Fixes angular#66060
1 parent a29a398 commit a2aa8fe

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

adev/src/content/tools/cli/cli-builder.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -302,27 +302,24 @@ This target tells the builder to copy the `package.json` file.
302302
- `source` - The existing file you are copying.
303303
- `destination` - The path you want to copy to.
304304

305-
< header="angular.json" language="json">
306-
305+
```json {header: "angular.json"}
307306
{
308-
"projects": {
309-
"builder-test": {
310-
"architect": {
311-
"copy-package": {
312-
"builder": "@example/copy-file:copy",
313-
"options": {
314-
"source": "package.json",
315-
"destination": "package-copy.json"
316-
}
317-
},
318-
307+
"projects": {
308+
"builder-test": {
309+
"architect": {
310+
"copy-package": {
311+
"builder": "@example/copy-file:copy",
312+
"options": {
313+
"source": "package.json",
314+
"destination": "package-copy.json"
315+
}
316+
},
319317
// Existing targets...
320318
}
321319
}
322-
323-
}
320+
}
324321
}
325-
</docs-code>
322+
```
326323

327324
### Running the builder
328325

0 commit comments

Comments
 (0)