diff --git a/lib/app.rb b/lib/app.rb index 0c215850..d4d7c17e 100644 --- a/lib/app.rb +++ b/lib/app.rb @@ -57,7 +57,7 @@ class App < Sinatra::Application configure :production do set :static, false - set :docs_host, 'http://maxcdn-docs.devdocs.io' + set :docs_host, 'http://docs.devdocs.io' use Rack::ConditionalGet use Rack::ETag @@ -76,7 +76,7 @@ class App < Sinatra::Application Sprockets::Helpers.configure do |config| config.digest = true - config.asset_host = 'maxcdn.devdocs.io' + config.asset_host = 'cdn.devdocs.io' config.manifest = Sprockets::Manifest.new(sprockets, assets_manifest_path) end end diff --git a/public/opensearch.xml b/public/opensearch.xml index 6efff909..4b3d9ad1 100644 --- a/public/opensearch.xml +++ b/public/opensearch.xml @@ -4,8 +4,8 @@ Search API documentation devdocs - http://maxcdn.devdocs.io/favicon.ico - http://maxcdn.devdocs.io/images/icon-64.png + http://cdn.devdocs.io/favicon.ico + http://cdn.devdocs.io/images/icon-64.png UTF-8 http://devdocs.io diff --git a/views/index.erb b/views/index.erb index 94cfef60..6d7e29ad 100644 --- a/views/index.erb +++ b/views/index.erb @@ -8,7 +8,7 @@ - + @@ -17,15 +17,15 @@ - - - - - - - - - + + + + + + + + + <%= javascript_tag 'application', asset_host: false %> <%= javascript_tag 'docs' %><% unless App.production? %> diff --git a/views/other.erb b/views/other.erb index b858950d..09a780dd 100644 --- a/views/other.erb +++ b/views/other.erb @@ -5,9 +5,9 @@ <% if doc_index_page? %><% else %><% end %> - + DevDocs<%= ": #{@doc['name']} API Documentation" if doc_index_page? %> - + <%= javascript_tag 'application', asset_host: false %><% unless App.production? %>