diff --git a/README.md b/README.md index 3088e09d..eee37fb3 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. @@ -14,7 +14,7 @@ Keep track of development news: ## 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 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/notice_tmpl.coffee b/assets/javascripts/templates/notice_tmpl.coffee index 75818967..10cc534e 100644 --- a/assets/javascripts/templates/notice_tmpl.coffee +++ b/assets/javascripts/templates/notice_tmpl.coffee @@ -2,7 +2,7 @@ notice = (text) -> """
#{text}
""" app.templates.singleDocNotice = (doc) -> notice """ You're browsing the #{doc.fullName} documentation. To browse all docs, go to - #{app.config.production_host} (or pressesc
). """
+ #{app.config.production_host} (or press esc
). """
app.templates.disabledDocNotice = ->
notice """ This documentation is disabled.
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee
index 8861fbe4..4b7cc58a 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -58,9 +58,9 @@ app.templates.aboutPage = -> """
Special thanks to:
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.
@@ -69,6 +69,6 @@ app.templates.androidWarning = """
DevDocs is running inside an Android WebView. Some features may not work properly.
If you downloaded an app called DevDocs on the Play Store, please uninstall it — it's made by someone who is using (and profiting from) the name DevDocs without permission. -
To install DevDocs on your phone, visit devdocs.io in Chrome and select "Add to home screen" in the menu. +
To install DevDocs on your phone, visit devdocs.io in Chrome and select "Add to home screen" in the menu. """ diff --git a/lib/app.rb b/lib/app.rb index abe82f96..662b1d86 100644 --- a/lib/app.rb +++ b/lib/app.rb @@ -253,7 +253,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