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
57 57
58 configure :production do58 configure :production do
59 set :static, false59 set :static, false
60 set :docs_host, 'http://maxcdn-docs.devdocs.io'60 set :docs_host, 'http://docs.devdocs.io'
61 61
62 use Rack::ConditionalGet62 use Rack::ConditionalGet
63 use Rack::ETag63 use Rack::ETag
@@ -76,7 +76,7 @@ class App < Sinatra::Application · 12 unmodified lines
76 76
77 Sprockets::Helpers.configure do |config|77 Sprockets::Helpers.configure do |config|
78 config.digest = true78 config.digest = true
79 config.asset_host = 'maxcdn.devdocs.io'79 config.asset_host = 'cdn.devdocs.io'
80 config.manifest = Sprockets::Manifest.new(sprockets, assets_manifest_path)80 config.manifest = Sprockets::Manifest.new(sprockets, assets_manifest_path)
81 end81 end
82 end82 end
public/opensearch.xml+2−2
@@ -4,8 +4,8 @@ · 3 unmodified lines
4 <Description>Search API documentation</Description>4 <Description>Search API documentation</Description>
5 <Tags>devdocs</Tags>5 <Tags>devdocs</Tags>
6 <Url type="text/html" method="get" template="http://devdocs.io/#q={searchTerms}"/>6 <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>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://maxcdn.devdocs.io/images/icon-64.png</Image>8 <Image height="64" width="64" type="image/x-icon">http://cdn.devdocs.io/images/icon-64.png</Image>
9 <InputEncoding>UTF-8</InputEncoding>9 <InputEncoding>UTF-8</InputEncoding>
10 <moz:SearchForm>http://devdocs.io</moz:SearchForm>10 <moz:SearchForm>http://devdocs.io</moz:SearchForm>
11 <Url type="application/opensearchdescription+xml" rel="self" template="http://devdocs.io/opensearch.xml"/>11 <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
8 <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.">8 <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.">
9 <meta property="og:type" content="website">9 <meta property="og:type" content="website">
10 <meta property="og:url" content="http://devdocs.io">10 <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">
12 <meta name="apple-mobile-web-app-capable" content="yes">12 <meta name="apple-mobile-web-app-capable" content="yes">
13 <meta name="apple-mobile-web-app-status-bar-style" content="black">13 <meta name="apple-mobile-web-app-status-bar-style" content="black">
14 <meta name="format-detection" content="telephone=no">14 <meta name="format-detection" content="telephone=no">
@@ -17,15 +17,15 @@ · 2 unmodified lines
17 <link rel="canonical" href="http://devdocs.io">17 <link rel="canonical" href="http://devdocs.io">
18 <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="DevDocs Search">18 <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="DevDocs Search">
19 <link rel="alternate" href="http://devdocs.io/feed" title="DevDocs" type="application/atom+xml">19 <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">20 <link rel="icon" type="image/x-icon" href="http://cdn.devdocs.io/favicon.ico">
21 <link rel="fluid-icon" href="http://maxcdn.devdocs.io/images/fluid-icon.png" title="DevDocs">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://maxcdn.devdocs.io/images/apple-icon-72.png">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://maxcdn.devdocs.io/images/apple-icon-76.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://maxcdn.devdocs.io/images/apple-icon-114.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://maxcdn.devdocs.io/images/apple-icon-120.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://maxcdn.devdocs.io/images/apple-icon-144.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://maxcdn.devdocs.io/images/apple-icon-152.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://maxcdn.devdocs.io/images/apple-icon-160.png">28 <link rel="apple-touch-icon" sizes="160x160" href="http://cdn.devdocs.io/images/apple-icon-160.png">
29 <link rel="stylesheet" href="<%= main_stylesheet_path %>" data-alt="<%= alternate_stylesheet_path %>">29 <link rel="stylesheet" href="<%= main_stylesheet_path %>" data-alt="<%= alternate_stylesheet_path %>">
30 <%= javascript_tag 'application', asset_host: false %>30 <%= javascript_tag 'application', asset_host: false %>
31 <%= javascript_tag 'docs' %><% unless App.production? %>31 <%= javascript_tag 'docs' %><% unless App.production? %>
views/other.erb+2−2
@@ -5,9 +5,9 @@ · 4 unmodified lines
5 <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">5 <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
6 <% 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 %>6 <% 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 %>
7 <meta name="format-detection" content="telephone=no">7 <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">
9 <title>DevDocs<%= ": #{@doc['name']} API Documentation" if doc_index_page? %></title>9 <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">
11 <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Search DevDocs">11 <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Search DevDocs">
12 <link rel="stylesheet" href="<%= main_stylesheet_path %>" data-alt="<%= alternate_stylesheet_path %>">12 <link rel="stylesheet" href="<%= main_stylesheet_path %>" data-alt="<%= alternate_stylesheet_path %>">
13 <%= javascript_tag 'application', asset_host: false %><% unless App.production? %>13 <%= javascript_tag 'application', asset_host: false %><% unless App.production? %>