summaryrefslogtreecommitdiffhomepage
path: root/yaml.html.markdown
diff options
context:
space:
mode:
authorDivay Prakash <divayprakash@users.noreply.github.com>2018-10-26 03:25:48 +0530
committerGitHub <noreply@github.com>2018-10-26 03:25:48 +0530
commitdba905ffd2929ac78509d019bc8b609699ee11cb (patch)
tree30492f9f5f408e6609e2d767cfbc025dea80f529 /yaml.html.markdown
parent30cdf4b25327e01c751db384e42692fd95178db1 (diff)
Fix YAML, closes #3172 (#3329)
* Fix yamllint errors * Fix link
Diffstat (limited to 'yaml.html.markdown')
-rw-r--r--yaml.html.markdown30
1 files changed, 17 insertions, 13 deletions
diff --git a/yaml.html.markdown b/yaml.html.markdown
index 52658453..ab0f9d55 100644
--- a/yaml.html.markdown
+++ b/yaml.html.markdown
@@ -14,6 +14,8 @@ significant newlines and indentation, like Python. Unlike Python, however,
YAML doesn't allow literal tab characters for indentation.
```yaml
+--- # document start
+
# Comments in YAML look like this.
################
@@ -83,22 +85,22 @@ a_nested_map:
# An example
? - Manchester United
- Real Madrid
-: [ 2001-01-01, 2002-02-02 ]
+: [2001-01-01, 2002-02-02]
# Sequences (equivalent to lists or arrays) look like this
# (note that the '-' counts as indentation):
a_sequence:
-- Item 1
-- Item 2
-- 0.5 # sequences can contain disparate types.
-- Item 4
-- key: value
- another_key: another_value
--
- - This is a sequence
- - inside another sequence
-- - - Nested sequence indicators
- - can be collapsed
+ - Item 1
+ - Item 2
+ - 0.5 # sequences can contain disparate types.
+ - Item 4
+ - key: value
+ another_key: another_value
+ -
+ - This is a sequence
+ - inside another sequence
+ - - - Nested sequence indicators
+ - can be collapsed
# Since YAML is a superset of JSON, you can also write JSON-style maps and
# sequences:
@@ -170,9 +172,11 @@ set2:
item1: null
item2: null
item3: null
+
+... # document end
```
### More Resources
+ [YAML official website](http://yaml.org/)
-+ [Online YAML Validator](http://codebeautify.org/yaml-validator)
++ [Online YAML Validator](http://www.yamllint.com/)