-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gatsby-transformer-yaml] Support for multiple data layouts #2257
Comments
So what does your transformer do differently? Looks at a quick glance to be quite similar. |
|
Hmmm yeah it could make sense then yeah that if the top-level of the YAML file is an object, make it into a node with the directory name as the type and then if it's an array, make it into a node with the filename as the type. Yeah, that seems like a really good pattern. You want to make a PR for this? Also to the JSON transformer since they work the same way? |
For sure - I should have some time later tonight to start working on it. |
Having the JSON transformer behave in this manner as well would be very nice =) |
Closed by #2324 |
I have been struggling to integrate gatsby with netlify-cms when using
gatsby-transformer-yaml
. Currently netlify-cms does not support collections defined in a single file [1]. I created a custom yaml plugin [2] to reconcile the two projects. Now I am curious if there is a path towards integrating this custom transformer withgatsby-transformer-yaml
to support a variety of data layouts.[1] decaporg/decap-cms#531
[2] https://github.com/computer-lab/gatsby-transformer-yaml-netlify
The text was updated successfully, but these errors were encountered: