History

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

Automatically generate public/docs/docs.json when it's needed

Jasper van Merle committed 7 years ago

Commit def4b282 parents 921a61c 9fa21312 files · +3 −1Browse files

Unified · Split

2 files
  1. lib/app.rb +3 −0
  2. public/docs/docs.json +0 −1
lib/app.rb+3−0
@@ -37,6 +37,9 @@ class App < Sinatra::Application · 36 unmodified lines
37 37
38 set :csp, false38 set :csp, false
39 39
40 require 'docs'
41 Docs.generate_manifest
42
40 Dir[docs_path, root.join(assets_prefix, '*/')].each do |path|43 Dir[docs_path, root.join(assets_prefix, '*/')].each do |path|
41 sprockets.append_path(path)44 sprockets.append_path(path)
42 end45 end
public/docs/docs.json+0−1
@@ -1 +0,0 @@
1[]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t