Automatic YAML structure generation

Hello fellow Jekyllers,

I’m looking to automate my documentation generation. I’m using a collection called ASSETS and I’d like every item added to the collection to appear in the sidenav.

The sidenav uses a YML file as the basis for its structure. Do you know how I could make Jekyll add a new entry to the YML file every time a new file is added to the collection folder?

if you can edit the liquid used to generate the navbar, just have it loop through the site.assets data set to generate the list of links.

Additionally, you could use something like a rake task. Set it up to add a reference in a yaml file and create the new .md file for you to start work on. Then the procedure for adding a new document to assets would be to run the task with an argument of the name.