From 337d5ba55389f8c344551ce4685edd7f3c387ea1 Mon Sep 17 00:00:00 2001 From: hydrargyrum Date: Mon, 7 Aug 2023 14:38:40 +0200 Subject: [PATCH 1/2] yaml.md: make better example of references There already was an example for referencing defaults. Replace with an example for simple values instead. --- yaml.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/yaml.md b/yaml.md index cac8d4e163..07575b4f2a 100644 --- a/yaml.md +++ b/yaml.md @@ -61,10 +61,6 @@ child: ### Reference content ```yaml -values: &ref - - These values - - will be reused below - -other_values: - <<: *ref +key1: &ref 42 +key2: *ref ``` From c53e37563d22607aa7b764904ecbd6392e2476e0 Mon Sep 17 00:00:00 2001 From: hydrargyrum Date: Mon, 7 Aug 2023 14:42:13 +0200 Subject: [PATCH 2/2] Update yaml.md --- yaml.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/yaml.md b/yaml.md index 07575b4f2a..35fd4e6a62 100644 --- a/yaml.md +++ b/yaml.md @@ -61,6 +61,11 @@ child: ### Reference content ```yaml -key1: &ref 42 -key2: *ref +simple_value: &refv 42 +simple_reuse: *refv + +list_value: &refl + - will be + - reused below +list_reuse: *refl ```