diff --git a/.gitignore b/.gitignore index 8b222826..ac523dbe 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,3 @@ tmp public/assets public/fonts -public/docs/**/* -!public/docs/docs.json -!public/docs/**/index.json diff --git a/lib/app.rb b/lib/app.rb index b5015b3a..217f2c16 100644 --- a/lib/app.rb +++ b/lib/app.rb @@ -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 diff --git a/public/docs/.gitignore b/public/docs/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/public/docs/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/public/docs/docs.json b/public/docs/docs.json deleted file mode 100644 index 0637a088..00000000 --- a/public/docs/docs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file