Automatically generate docs.json when it's needed

pull/848/head
Jasper van Merle 7 years ago
parent 4e56a77012
commit c13fffd081

3
.gitignore vendored

@ -5,6 +5,3 @@
tmp
public/assets
public/fonts
public/docs/**/*
!public/docs/docs.json
!public/docs/**/index.json

@ -35,6 +35,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

@ -0,0 +1,2 @@
*
!.gitignore
Loading…
Cancel
Save