Skip to content

Commit b7bc3a2

Browse files
Merge pull request #9593 from circleci/replace-hp
Replace references in yaml config examples
2 parents 18fd286 + af0d846 commit b7bc3a2

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

docs/guides/modules/getting-started/pages/introduction-to-yaml-configurations.adoc

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -209,32 +209,32 @@ Anchors and aliases work for scalar values, but to save maps or sequences, use `
209209
210210
```yaml
211211
default: &default
212-
school: hogwarts
212+
category: Tea
213213
214-
harry:
214+
hojicha:
215215
<<: *default
216-
house: gryffindor
216+
price: 3.95
217217
218-
draco:
218+
matcha_latte:
219219
<<: *default
220-
house: slytherin
220+
price: 5.95
221221
```
222222
223223
You can also merge multiple maps.
224224
225225
```yaml
226-
name: &harry_name
227-
first_name: Harry
228-
last_name: Potter
229-
230-
address: &harry_address
231-
street: 4, Privet Drive
232-
district: Little Whinging
233-
county: Surrey
234-
country: England
235-
236-
harry_data:
237-
<<: [*harry_name, *harry_address]
226+
name: &big_bird_alter_egos
227+
ep_0246: Verybig Bird
228+
ep_3161: Big Fish
229+
230+
address: &big_bird_address
231+
street: 123½ Sesame Street
232+
city: New York
233+
state: New York
234+
country: United States
235+
236+
big_bird_data:
237+
<<: [*big_bird_alter_egos, *big_bird_address]
238238
```
239239
240240
**Note**: As mentioned in https://github.com/yaml/yaml/issues/35[a YAML repository issue], it is possible to merge maps, but not sequences (also called arrays or lists). For a more complex example, see https://gist.github.com/bowsersenior/979804[this gist].

0 commit comments

Comments
 (0)