zephyr/samples/basic
Ulf Magnusson eba81c6e54 yaml: Remove redundant document separators
YAML document separators are needed e.g. when doing

  $ cat doc1.yaml doc2.yaml | <parser>

For the bindings, we never parse concatenated documents. Assume we don't
for any other .yaml files either.

Having document separators in e.g. base.yaml makes !include a bit
confusing, since the !included files are merged and not separate
documents (the merging is done in Python code though, so it makes no
difference for behavior).

The replacement was done with

    $ git ls-files '*.yaml' | \
        xargs sed -i -e '${/\s*\.\.\.\s*/d;}' -e 's/^\s*---\s*$//'

First pattern removes ... at the end of files, second pattern clears a
line with a lone --- on it.

Some redundant blank lines at the end of files were cleared with

    $ git ls-files '*.yaml' | xargs sed -i '${/^\s*$/d}'

This is more about making sure people can understand why every part of a
binding is there than about removing some text.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-06-19 10:40:10 +02:00
..
blink_led soc: stm32: STM32L4: Remove useless package digit 2019-06-17 16:14:45 -04:00
blinky doc: samples: cleanup board reference and layout 2019-06-13 16:09:02 -04:00
button license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
disco license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
fade_led soc: stm32: STM32L4: Remove useless package digit 2019-06-17 16:14:45 -04:00
minimal yaml: Remove redundant document separators 2019-06-19 10:40:10 +02:00
rgb_led doc: samples: cleanup board reference and layout 2019-06-13 16:09:02 -04:00
servo_motor doc: samples: cleanup board reference and layout 2019-06-13 16:09:02 -04:00
threads license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
basic.rst doc: add labels to basic sample docs 2017-04-04 19:51:47 +00:00