An interesting idea would be to have yard create the json files statically (instead of caching the generated output in Rails.cache) -- then copy them into a subdir like /public/data/*.json.
If swagger-ui could be bundled up into /public/swagger-ui as well, then a single generator could generate the doc, bundle it and store it in public, allowing the apidoc to be completely static!
This idea goes in a different direction than your initial gem, so feel free to close this if don't want to consider that mode. I might investigate this further in another gem in that case.
An interesting idea would be to have yard create the json files statically (instead of caching the generated output in Rails.cache) -- then copy them into a subdir like /public/data/*.json.
If swagger-ui could be bundled up into /public/swagger-ui as well, then a single generator could generate the doc, bundle it and store it in public, allowing the apidoc to be completely static!
This idea goes in a different direction than your initial gem, so feel free to close this if don't want to consider that mode. I might investigate this further in another gem in that case.