Hi, I’ve used middleman for various projects in the past and love it. I’m now building a gem that lets you generate your HTTP API web documentation via a ruby DSL.
How it would work is my gem would load the user’s API definitions, which creates a ruby data structure that represents your API resources, params, response properties, etc. I would want to load this into middleman and use that as data to render web documentation.
I would like to use middleman to manage assets, build process, structure, and deployment for the user. I thought about creating an extension that adds a new :api_doc template, but I want my gem to house the page definitions, erb/haml/slim templates, and assets because my DSL could change, and if I did this as a template, then they would have to regenerate the project to get updates, which might mean losing their customizations.
Any suggestions on how to accomplish this?