Make component generator output YAML

After fixing this generator to read in YAML not JSON, I forgot to fix it to output YAML not JSON. This commit makes the generator write YAML. (whoops)
Merge pull request #496 from alphagov/fix-json-yml-docs

Make component generator output YAML