Automatically generate public/docs/docs.json when it's needed
Unified · Split
| @@ -37,6 +37,9 @@ class App < Sinatra::Application · 36 unmodified lines | ||
| 37 | 37 | |
| 38 | 38 | set :csp, false |
| 39 | 39 | |
| 40 | + require 'docs' | |
| 41 | + Docs.generate_manifest | |
| 42 | + | |
| 40 | 43 | Dir[docs_path, root.join(assets_prefix, '*/')].each do |path| |
| 41 | 44 | sprockets.append_path(path) |
| 42 | 45 | end |
| @@ -1 +0,0 @@ | ||
| 1 | −[] | |