History

Automatically generate docs.json when it's needed

Jasper van Merle committed 8 years ago

Commit c13fffd1 parent 4e56a774 files · +5 −4Browse files

Unified · Split

4 files
  1. .gitignore +0 −3
  2. lib/app.rb +3 −0
  3. public/docs/.gitignore +2 −0
  4. public/docs/docs.json +0 −1
.gitignore+0−3
@@ -5,6 +5,3 @@ · 4 unmodified lines
5tmp5tmp
6public/assets6public/assets
7public/fonts7public/fonts
8public/docs/**/*
9!public/docs/docs.json
10!public/docs/**/index.json
lib/app.rb+3−0
@@ -35,6 +35,9 @@ class App < Sinatra::Application · 34 unmodified lines
35 35
36 set :csp, false36 set :csp, false
37 37
38 require 'docs'
39 Docs.generate_manifest
40
38 Dir[docs_path, root.join(assets_prefix, '*/')].each do |path|41 Dir[docs_path, root.join(assets_prefix, '*/')].each do |path|
39 sprockets.append_path(path)42 sprockets.append_path(path)
40 end43 end
public/docs/.gitignore+2−0
@@ -0,0 +1,2 @@
1*
2!.gitignore
public/docs/docs.json+0−1
@@ -1 +0,0 @@
1[]