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) [](https://travis-ci.org/Thibaut/devdocs)
+# [DevDocs](https://devdocs.io) [](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:
thor docs:list
to see all available documentations.
thor docs:download <name>
to download documentations.
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", '
The page you were looking for doesn't exist.
- Go back to devdocs.io.
+ Go back to devdocs.io.