Skip to content

Commit def4b28

Browse files
authored
Merge pull request #848 from jmerle/generate-docs-json
Automatically generate public/docs/docs.json when it's needed
2 parents 921a61c + 9fa2131 commit def4b28

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/app.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ class App < Sinatra::Application
3737

3838
set :csp, false
3939

40+
require 'docs'
41+
Docs.generate_manifest
42+
4043
Dir[docs_path, root.join(assets_prefix, '*/')].each do |path|
4144
sprockets.append_path(path)
4245
end

public/docs/docs.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)