History

Change cdn URLs

Thibaut committed 11 years ago

Commit 61d1d491 parent 9cd5f204 files · +16 −16Browse files

Unified · Split

4 files
  1. lib/app.rb +2 −2
  2. public/opensearch.xml +2 −2
  3. views/index.erb +10 −10
  4. views/other.erb +2 −2
lib/app.rb+2−2
@@ -57,7 +57,7 @@ class App < Sinatra::Application · 56 unmodified lines
5757
5858 configure :production do
5959 set :static, false
60− set :docs_host, 'http://maxcdn-docs.devdocs.io'
60+ set :docs_host, 'http://docs.devdocs.io'
6161
6262 use Rack::ConditionalGet
6363 use Rack::ETag
@@ -76,7 +76,7 @@ class App < Sinatra::Application · 12 unmodified lines
7676
7777 Sprockets::Helpers.configure do |config|
7878 config.digest = true
79− config.asset_host = 'maxcdn.devdocs.io'
79+ config.asset_host = 'cdn.devdocs.io'
8080 config.manifest = Sprockets::Manifest.new(sprockets, assets_manifest_path)
8181 end
8282 end
public/opensearch.xml+2−2
@@ -4,8 +4,8 @@ · 3 unmodified lines
44 <Description>Search API documentation</Description>
55 <Tags>devdocs</Tags>
66 <Url type="text/html" method="get" template="http://devdocs.io/#q={searchTerms}"/>
7− <Image height="16" width="16" type="image/vnd.microsoft.icon">http://maxcdn.devdocs.io/favicon.ico</Image>
8− <Image height="64" width="64" type="image/x-icon">http://maxcdn.devdocs.io/images/icon-64.png</Image>
7+ <Image height="16" width="16" type="image/vnd.microsoft.icon">http://cdn.devdocs.io/favicon.ico</Image>
8+ <Image height="64" width="64" type="image/x-icon">http://cdn.devdocs.io/images/icon-64.png</Image>
99 <InputEncoding>UTF-8</InputEncoding>
1010 <moz:SearchForm>http://devdocs.io</moz:SearchForm>
1111 <Url type="application/opensearchdescription+xml" rel="self" template="http://devdocs.io/opensearch.xml"/>
views/index.erb+10−10
@@ -8,7 +8,7 @@ · 7 unmodified lines
88 <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.">
99 <meta property="og:type" content="website">
1010 <meta property="og:url" content="http://devdocs.io">
11− <meta property="og:image" content="http://maxcdn.devdocs.io/images/icon-128.png">
11+ <meta property="og:image" content="http://cdn.devdocs.io/images/icon-128.png">
1212 <meta name="apple-mobile-web-app-capable" content="yes">
1313 <meta name="apple-mobile-web-app-status-bar-style" content="black">
1414 <meta name="format-detection" content="telephone=no">
@@ -17,15 +17,15 @@ · 2 unmodified lines
1717 <link rel="canonical" href="http://devdocs.io">
1818 <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="DevDocs Search">
1919 <link rel="alternate" href="http://devdocs.io/feed" title="DevDocs" type="application/atom+xml">
20− <link rel="icon" type="image/x-icon" href="http://maxcdn.devdocs.io/favicon.ico">
21− <link rel="fluid-icon" href="http://maxcdn.devdocs.io/images/fluid-icon.png" title="DevDocs">
22− <link rel="apple-touch-icon" sizes="72x72" href="http://maxcdn.devdocs.io/images/apple-icon-72.png">
23− <link rel="apple-touch-icon" sizes="76x76" href="http://maxcdn.devdocs.io/images/apple-icon-76.png">
24− <link rel="apple-touch-icon" sizes="114x114" href="http://maxcdn.devdocs.io/images/apple-icon-114.png">
25− <link rel="apple-touch-icon" sizes="120x120" href="http://maxcdn.devdocs.io/images/apple-icon-120.png">
26− <link rel="apple-touch-icon" sizes="144x144" href="http://maxcdn.devdocs.io/images/apple-icon-144.png">
27− <link rel="apple-touch-icon" sizes="152x152" href="http://maxcdn.devdocs.io/images/apple-icon-152.png">
28− <link rel="apple-touch-icon" sizes="160x160" href="http://maxcdn.devdocs.io/images/apple-icon-160.png">
20+ <link rel="icon" type="image/x-icon" href="http://cdn.devdocs.io/favicon.ico">
21+ <link rel="fluid-icon" href="http://cdn.devdocs.io/images/fluid-icon.png" title="DevDocs">
22+ <link rel="apple-touch-icon" sizes="72x72" href="http://cdn.devdocs.io/images/apple-icon-72.png">
23+ <link rel="apple-touch-icon" sizes="76x76" href="http://cdn.devdocs.io/images/apple-icon-76.png">
24+ <link rel="apple-touch-icon" sizes="114x114" href="http://cdn.devdocs.io/images/apple-icon-114.png">
25+ <link rel="apple-touch-icon" sizes="120x120" href="http://cdn.devdocs.io/images/apple-icon-120.png">
26+ <link rel="apple-touch-icon" sizes="144x144" href="http://cdn.devdocs.io/images/apple-icon-144.png">
27+ <link rel="apple-touch-icon" sizes="152x152" href="http://cdn.devdocs.io/images/apple-icon-152.png">
28+ <link rel="apple-touch-icon" sizes="160x160" href="http://cdn.devdocs.io/images/apple-icon-160.png">
2929 <link rel="stylesheet" href="<%= main_stylesheet_path %>" data-alt="<%= alternate_stylesheet_path %>">
3030 <%= javascript_tag 'application', asset_host: false %>
3131 <%= javascript_tag 'docs' %><% unless App.production? %>
views/other.erb+2−2
@@ -5,9 +5,9 @@ · 4 unmodified lines
55 <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
66 <% 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 %>
77 <meta name="format-detection" content="telephone=no">
8− <meta property="og:image" content="http://maxcdn.devdocs.io/images/icon-128.png">
8+ <meta property="og:image" content="http://cdn.devdocs.io/images/icon-128.png">
99 <title>DevDocs<%= ": #{@doc['name']} API Documentation" if doc_index_page? %></title>
10− <link rel="icon" type="image/x-icon" href="http://maxcdn.devdocs.io/favicon.ico">
10+ <link rel="icon" type="image/x-icon" href="http://cdn.devdocs.io/favicon.ico">
1111 <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Search DevDocs">
1212 <link rel="stylesheet" href="<%= main_stylesheet_path %>" data-alt="<%= alternate_stylesheet_path %>">
1313 <%= javascript_tag 'application', asset_host: false %><% unless App.production? %>