Change cdn URLs

This commit is contained in:
Thibaut 2015-05-03 22:25:19 -04:00
parent 9cd5f20a48
commit 61d1d49f64
4 changed files with 16 additions and 16 deletions

View file

@ -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

View file

@ -4,8 +4,8 @@
<Description>Search API documentation</Description>
<Tags>devdocs</Tags>
<Url type="text/html" method="get" template="http://devdocs.io/#q={searchTerms}"/>
<Image height="16" width="16" type="image/vnd.microsoft.icon">http://maxcdn.devdocs.io/favicon.ico</Image>
<Image height="64" width="64" type="image/x-icon">http://maxcdn.devdocs.io/images/icon-64.png</Image>
<Image height="16" width="16" type="image/vnd.microsoft.icon">http://cdn.devdocs.io/favicon.ico</Image>
<Image height="64" width="64" type="image/x-icon">http://cdn.devdocs.io/images/icon-64.png</Image>
<InputEncoding>UTF-8</InputEncoding>
<moz:SearchForm>http://devdocs.io</moz:SearchForm>
<Url type="application/opensearchdescription+xml" rel="self" template="http://devdocs.io/opensearch.xml"/>

View file

@ -8,7 +8,7 @@
<meta property="og:description" content="DevDocs combines <%= App.docs.size %> reference documentations in a fast, organized, and searchable interface: HTML, CSS, JavaScript, PHP, Ruby, Python, Go, C, C++, etc.">
<meta property="og:type" content="website">
<meta property="og:url" content="http://devdocs.io">
<meta property="og:image" content="http://maxcdn.devdocs.io/images/icon-128.png">
<meta property="og:image" content="http://cdn.devdocs.io/images/icon-128.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
@ -17,15 +17,15 @@
<link rel="canonical" href="http://devdocs.io">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="DevDocs Search">
<link rel="alternate" href="http://devdocs.io/feed" title="DevDocs" type="application/atom+xml">
<link rel="icon" type="image/x-icon" href="http://maxcdn.devdocs.io/favicon.ico">
<link rel="fluid-icon" href="http://maxcdn.devdocs.io/images/fluid-icon.png" title="DevDocs">
<link rel="apple-touch-icon" sizes="72x72" href="http://maxcdn.devdocs.io/images/apple-icon-72.png">
<link rel="apple-touch-icon" sizes="76x76" href="http://maxcdn.devdocs.io/images/apple-icon-76.png">
<link rel="apple-touch-icon" sizes="114x114" href="http://maxcdn.devdocs.io/images/apple-icon-114.png">
<link rel="apple-touch-icon" sizes="120x120" href="http://maxcdn.devdocs.io/images/apple-icon-120.png">
<link rel="apple-touch-icon" sizes="144x144" href="http://maxcdn.devdocs.io/images/apple-icon-144.png">
<link rel="apple-touch-icon" sizes="152x152" href="http://maxcdn.devdocs.io/images/apple-icon-152.png">
<link rel="apple-touch-icon" sizes="160x160" href="http://maxcdn.devdocs.io/images/apple-icon-160.png">
<link rel="icon" type="image/x-icon" href="http://cdn.devdocs.io/favicon.ico">
<link rel="fluid-icon" href="http://cdn.devdocs.io/images/fluid-icon.png" title="DevDocs">
<link rel="apple-touch-icon" sizes="72x72" href="http://cdn.devdocs.io/images/apple-icon-72.png">
<link rel="apple-touch-icon" sizes="76x76" href="http://cdn.devdocs.io/images/apple-icon-76.png">
<link rel="apple-touch-icon" sizes="114x114" href="http://cdn.devdocs.io/images/apple-icon-114.png">
<link rel="apple-touch-icon" sizes="120x120" href="http://cdn.devdocs.io/images/apple-icon-120.png">
<link rel="apple-touch-icon" sizes="144x144" href="http://cdn.devdocs.io/images/apple-icon-144.png">
<link rel="apple-touch-icon" sizes="152x152" href="http://cdn.devdocs.io/images/apple-icon-152.png">
<link rel="apple-touch-icon" sizes="160x160" href="http://cdn.devdocs.io/images/apple-icon-160.png">
<link rel="stylesheet" href="<%= main_stylesheet_path %>" data-alt="<%= alternate_stylesheet_path %>">
<%= javascript_tag 'application', asset_host: false %>
<%= javascript_tag 'docs' %><% unless App.production? %>

View file

@ -5,9 +5,9 @@
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<% if doc_index_page? %><meta name="description" content="<%= @doc['name'] %> reference documentation with fast, fuzzy search, keyboard shortcuts, mobile version, offline access, and more."><% else %><meta name="robots" content="noindex"><% end %>
<meta name="format-detection" content="telephone=no">
<meta property="og:image" content="http://maxcdn.devdocs.io/images/icon-128.png">
<meta property="og:image" content="http://cdn.devdocs.io/images/icon-128.png">
<title>DevDocs<%= ": #{@doc['name']} API Documentation" if doc_index_page? %></title>
<link rel="icon" type="image/x-icon" href="http://maxcdn.devdocs.io/favicon.ico">
<link rel="icon" type="image/x-icon" href="http://cdn.devdocs.io/favicon.ico">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Search DevDocs">
<link rel="stylesheet" href="<%= main_stylesheet_path %>" data-alt="<%= alternate_stylesheet_path %>">
<%= javascript_tag 'application', asset_host: false %><% unless App.production? %>