Merge pull request #848 from jmerle/generate-docs-json

Automatically generate public/docs/docs.json when it's needed
This commit is contained in:
Jasper van Merle 2019-07-20 01:55:10 +02:00 committed by GitHub
commit def4b286e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -37,6 +37,9 @@ class App < Sinatra::Application
set :csp, false
require 'docs'
Docs.generate_manifest
Dir[docs_path, root.join(assets_prefix, '*/')].each do |path|
sprockets.append_path(path)
end

View file

@ -1 +0,0 @@
[]