diff --git a/README.md b/README.md index a4b65b3f..1ae2311b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [DevDocs](http://devdocs.io) [![Build Status](https://travis-ci.org/Thibaut/devdocs.svg?branch=master)](https://travis-ci.org/Thibaut/devdocs) +# [DevDocs](https://devdocs.io) [![Build Status](https://travis-ci.org/Thibaut/devdocs.svg?branch=master)](https://travis-ci.org/Thibaut/devdocs) DevDocs combines multiple API documentations in a fast, organized, and searchable interface. @@ -17,7 +17,7 @@ DevDocs is free and open source. If you like it, please consider supporting my w ## Quick Start -Unless you wish to contribute to the project, I recommend using the hosted version at [devdocs.io](http://devdocs.io). It's up-to-date and works offline out-of-the-box. +Unless you wish to contribute to the project, I recommend using the hosted version at [devdocs.io](https://devdocs.io). It's up-to-date and works offline out-of-the-box. DevDocs is made of two separate pieces: a Ruby scraper that generates the documentation and metadata, and a JavaScript app powered by a small Sinatra app. diff --git a/assets/javascripts/templates/pages/offline_tmpl.coffee b/assets/javascripts/templates/pages/offline_tmpl.coffee index e3c2523c..5c6b174f 100644 --- a/assets/javascripts/templates/pages/offline_tmpl.coffee +++ b/assets/javascripts/templates/pages/offline_tmpl.coffee @@ -41,11 +41,11 @@ app.templates.offlinePage = (docs) -> """ canICloseTheTab = -> if app.AppCache.isEnabled() - """ Yes! Even offline, you can open a new tab, go to devdocs.io, and everything will work as if you were online (provided you installed all the documentations you want to use beforehand). """ + """ Yes! Even offline, you can open a new tab, go to devdocs.io, and everything will work as if you were online (provided you installed all the documentations you want to use beforehand). """ else if app.mozApp """ Yes! Even offline, you can open the app and everything will work as if you were online (provided you installed all the documentations you want to use beforehand). """ else - """ No. AppCache isn't available in your browser (or is disabled) so loading devdocs.io offline won't work.
+ """ No. AppCache isn't available in your browser (or is disabled) so loading devdocs.io offline won't work.
The current tab will continue to work, though (provided you installed all the documentations you want to use beforehand). """ app.templates.offlineDoc = (doc, status) -> diff --git a/assets/javascripts/templates/pages/root_tmpl.coffee.erb b/assets/javascripts/templates/pages/root_tmpl.coffee.erb index 90708207..c774113a 100644 --- a/assets/javascripts/templates/pages/root_tmpl.coffee.erb +++ b/assets/javascripts/templates/pages/root_tmpl.coffee.erb @@ -8,7 +8,7 @@ app.templates.intro = """

Thanks for downloading DevDocs. Here are a few things you should know:

  1. Your local version of DevDocs won't self-update. Unless you're modifying the code, - I recommend using the hosted version at devdocs.io. + I recommend using the hosted version at devdocs.io.
  2. Run thor docs:list to see all available documentations.
  3. Run thor docs:download <name> to download documentations.
  4. Run thor docs:download --installed to update all downloaded documentations. diff --git a/lib/app.rb b/lib/app.rb index faef0d55..9ff81c1f 100644 --- a/lib/app.rb +++ b/lib/app.rb @@ -204,7 +204,7 @@ class App < Sinatra::Application before do if request.host == OUT_HOST && !request.path.start_with?('/s/') query_string = "?#{request.query_string}" unless request.query_string.empty? - redirect "http://devdocs.io#{request.path}#{query_string}", 302 + redirect "https://devdocs.io#{request.path}#{query_string}", 302 end end @@ -254,9 +254,9 @@ class App < Sinatra::Application '/s/jetbrains/c' => 'https://www.jetbrains.com/clion/?utm_source=devdocs&utm_medium=sponsorship&utm_campaign=devdocs', '/s/jetbrains/web' => 'https://www.jetbrains.com/webstorm/?utm_source=devdocs&utm_medium=sponsorship&utm_campaign=devdocs', '/s/code-school' => 'http://www.codeschool.com/?utm_campaign=devdocs&utm_content=homepage&utm_source=devdocs&utm_medium=sponsorship', - '/s/tw' => 'https://twitter.com/intent/tweet?url=http%3A%2F%2Fdevdocs.io&via=DevDocs&text=All-in-one%2C%20offline%20API%20documentation%20browser%3A', - '/s/fb' => 'https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fdevdocs.io', - '/s/re' => 'http://www.reddit.com/submit?url=http%3A%2F%2Fdevdocs.io&title=All-in-one%2C%20offline%20API%20documentation%20browser&resubmit=true' + '/s/tw' => 'https://twitter.com/intent/tweet?url=https%3A%2F%2Fdevdocs.io&via=DevDocs&text=All-in-one%2C%20offline%20API%20documentation%20browser%3A', + '/s/fb' => 'https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdevdocs.io', + '/s/re' => 'http://www.reddit.com/submit?url=https%3A%2F%2Fdevdocs.io&title=All-in-one%2C%20offline%20API%20documentation%20browser&resubmit=true' }.each do |path, url| class_eval <<-CODE, __FILE__, __LINE__ + 1 get '#{path}' do @@ -303,13 +303,13 @@ class App < Sinatra::Application maker.channel.links.new_link do |link| link.rel = 'self' - link.href = 'http://devdocs.io/feed.atom' + link.href = 'https://devdocs.io/feed.atom' link.type = 'application/atom+xml' end maker.channel.links.new_link do |link| link.rel = 'alternate' - link.href = 'http://devdocs.io/' + link.href = 'https://devdocs.io/' link.type = 'text/html' end @@ -318,14 +318,14 @@ class App < Sinatra::Application item.id = "tag:devdocs.io,2014:News/#{settings.news.length - i}" item.title = news[1].split("\n").first.gsub(/<\/?[^>]*>/, '') item.description do |desc| - desc.content = news[1..-1].join.gsub("\n", '
    ').gsub('href="/', 'href="http://devdocs.io/') + desc.content = news[1..-1].join.gsub("\n", '
    ').gsub('href="/', 'href="https://devdocs.io/') desc.type = 'html' end item.updated = "#{news.first}T14:00:00Z" item.published = "#{news.first}T14:00:00Z" item.links.new_link do |link| link.rel = 'alternate' - link.href = 'http://devdocs.io/' + link.href = 'https://devdocs.io/' link.type = 'text/html' end end diff --git a/public/404.html b/public/404.html index c2d36575..95abb0cf 100644 --- a/public/404.html +++ b/public/404.html @@ -62,7 +62,7 @@

    Oops!

    The page you were looking for doesn't exist.
    - Go back to devdocs.io. + Go back to devdocs.io.

    diff --git a/public/500.html b/public/500.html index 47e8aaa2..6338de3f 100644 --- a/public/500.html +++ b/public/500.html @@ -63,7 +63,7 @@

    Something is technically wrong.
    Thanks for noticing—we're going to fix it up and have things back to normal soon.
    - Go back to devdocs.io. + Go back to devdocs.io.

    diff --git a/public/manifest.webapp b/public/manifest.webapp index 7a94ba41..f0b28e4a 100644 --- a/public/manifest.webapp +++ b/public/manifest.webapp @@ -5,7 +5,7 @@ "developer": { "name": "Thibaut Courouble", - "url": "http://devdocs.io" + "url": "https://devdocs.io" }, "default_locale": "en", diff --git a/public/opensearch.xml b/public/opensearch.xml index 4b3d9ad1..660be50d 100644 --- a/public/opensearch.xml +++ b/public/opensearch.xml @@ -3,10 +3,10 @@ DevDocs Search API documentation devdocs - + http://cdn.devdocs.io/favicon.ico http://cdn.devdocs.io/images/icon-64.png UTF-8 - http://devdocs.io - + https://devdocs.io + diff --git a/views/index.erb b/views/index.erb index 3bd5f860..7e3808b1 100644 --- a/views/index.erb +++ b/views/index.erb @@ -7,16 +7,16 @@ - + DevDocs API Documentation - + - + diff --git a/views/other.erb b/views/other.erb index d80282e4..714d0094 100644 --- a/views/other.erb +++ b/views/other.erb @@ -7,7 +7,7 @@ DevDocs<%= " - #{@doc['full_name']} documentation" if doc_index_page? %> - +