mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Merge pull request #848 from jmerle/generate-docs-json
Automatically generate public/docs/docs.json when it's needed
This commit is contained in:
commit
def4b286e3
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
[]
|
Loading…
Reference in a new issue