diff --git a/Gemfile.lock b/Gemfile.lock index 745c9fbc..b1fee1a4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -20,7 +20,7 @@ GIT GIT remote: git://github.com/travis-ci/travis-core.git - revision: a5c5d1c95054126ea16cd3e10000ee71312df95f + revision: 0382e80787319cc496400a2e7cb85feb63e278ec specs: travis-core (0.0.1) actionmailer (~> 3.2.3) diff --git a/lib/travis/api/app/endpoint/documentation.rb b/lib/travis/api/app/endpoint/documentation.rb index 9131e5d3..e230142e 100644 --- a/lib/travis/api/app/endpoint/documentation.rb +++ b/lib/travis/api/app/endpoint/documentation.rb @@ -4,8 +4,8 @@ class Travis::Api::App class Endpoint # Generated API documentation. class Documentation < Endpoint - set prefix: '/docs' - enable :inline_templates + set prefix: '/docs', public_folder: File.expand_path('../documentation', __FILE__) + enable :inline_templates, :static # HTML view for [/endpoints](#/endpoints/). get '/' do @@ -54,11 +54,11 @@ __END__ Travis API documentation - - - - - + + + + +