Unified · Split
| @@ -1,4 +1,4 @@ | |||
| 1 | # [DevDocs](http://devdocs.io) [](https://travis-ci.org/Thibaut/devdocs) | 1 | # [DevDocs](https://devdocs.io) [](https://travis-ci.org/Thibaut/devdocs) |
| 2 | 2 | ||
| 3 | DevDocs combines multiple API documentations in a fast, organized, and searchable interface. | 3 | DevDocs combines multiple API documentations in a fast, organized, and searchable interface. |
| 4 | 4 | ||
| @@ -14,7 +14,7 @@ Keep track of development news: · 9 unmodified lines | |||
| 14 | 14 | ||
| 15 | ## Quick Start | 15 | ## Quick Start |
| 16 | 16 | ||
| 17 | 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. | 17 | 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. |
| 18 | 18 | ||
| 19 | 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. | 19 | 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. |
| 20 | 20 | ||
| @@ -2,7 +2,7 @@ notice = (text) -> """<p class="_notice-text">#{text}</p>""" · 1 unmodified line | |||
| 2 | 2 | ||
| 3 | app.templates.singleDocNotice = (doc) -> | 3 | app.templates.singleDocNotice = (doc) -> |
| 4 | notice """ You're browsing the #{doc.fullName} documentation. To browse all docs, go to | 4 | notice """ You're browsing the #{doc.fullName} documentation. To browse all docs, go to |
| 5 | <a href="http://#{app.config.production_host}" target="_top">#{app.config.production_host}</a> (or press <code>esc</code>). """ | 5 | <a href="//#{app.config.production_host}" target="_top">#{app.config.production_host}</a> (or press <code>esc</code>). """ |
| 6 | 6 | ||
| 7 | app.templates.disabledDocNotice = -> | 7 | app.templates.disabledDocNotice = -> |
| 8 | notice """ <strong>This documentation is disabled.</strong> | 8 | notice """ <strong>This documentation is disabled.</strong> |
| @@ -58,9 +58,9 @@ app.templates.aboutPage = -> """ · 57 unmodified lines | |||
| 58 | 58 | ||
| 59 | <p><strong>Special thanks to:</strong> | 59 | <p><strong>Special thanks to:</strong> |
| 60 | <ul> | 60 | <ul> |
| 61 | <li><a href="https://out.devdocs.io/s/maxcdn">MaxCDN</a>, <a href="https://sentry.io/">Sentry</a> and <a href="http://get.gaug.es/?utm_source=devdocs&utm_medium=referral&utm_campaign=sponsorships" title="Real Time Web Analytics">Gauges</a> for offering a free account to DevDocs | 61 | <li><a href="https://out.devdocs.io/s/maxcdn">MaxCDN</a>, <a href="https://sentry.io/">Sentry</a> and <a href="https://get.gaug.es/?utm_source=devdocs&utm_medium=referral&utm_campaign=sponsorships" title="Real Time Web Analytics">Gauges</a> for offering a free account to DevDocs |
| 62 | <li><a href="https://out.devdocs.io/s/maxcdn">MaxCDN</a>, <a href="https://out.devdocs.io/s/shopify">Shopify</a>, <a href="https://out.devdocs.io/s/jetbrains">JetBrains</a> and <a href="https://out.devdocs.io/s/code-school">Code School</a> for sponsoring DevDocs in the past | 62 | <li><a href="https://out.devdocs.io/s/maxcdn">MaxCDN</a>, <a href="https://out.devdocs.io/s/shopify">Shopify</a>, <a href="https://out.devdocs.io/s/jetbrains">JetBrains</a> and <a href="https://out.devdocs.io/s/code-school">Code School</a> for sponsoring DevDocs in the past |
| 63 | <li><a href="https://www.heroku.com">Heroku</a> and <a href="http://newrelic.com">New Relic</a> for providing awesome free service | 63 | <li><a href="https://www.heroku.com">Heroku</a> and <a href="https://newrelic.com/">New Relic</a> for providing awesome free service |
| 64 | <li><a href="https://www.jeremykratz.com/">Jeremy Kratz</a> for the C/C++ logo | 64 | <li><a href="https://www.jeremykratz.com/">Jeremy Kratz</a> for the C/C++ logo |
| 65 | </ul> | 65 | </ul> |
| 66 | 66 | ||
| @@ -76,7 +76,7 @@ app.templates.aboutPage = -> """ · 9 unmodified lines | |||
| 76 | 76 | ||
| 77 | <h2 class="_block-heading" id="privacy">Privacy Policy</h2> | 77 | <h2 class="_block-heading" id="privacy">Privacy Policy</h2> |
| 78 | <ul> | 78 | <ul> |
| 79 | <li><a href="http://devdocs.io">devdocs.io</a> ("App") is operated by Thibaut Courouble ("We"). | 79 | <li><a href="https://devdocs.io">devdocs.io</a> ("App") is operated by Thibaut Courouble ("We"). |
| 80 | <li>We do not collect personal information. | 80 | <li>We do not collect personal information. |
| 81 | <li>We use Google Analytics, Gauges and Sentry to collect anonymous traffic information and improve the app. | 81 | <li>We use Google Analytics, Gauges and Sentry to collect anonymous traffic information and improve the app. |
| 82 | <li>The app uses cookies to store user preferences. | 82 | <li>The app uses cookies to store user preferences. |
| @@ -8,7 +8,7 @@ app.templates.intro = """ · 7 unmodified lines | |||
| 8 | <p>Thanks for downloading DevDocs. Here are a few things you should know: | 8 | <p>Thanks for downloading DevDocs. Here are a few things you should know: |
| 9 | <ol class="_intro-list"> | 9 | <ol class="_intro-list"> |
| 10 | <li>Your local version of DevDocs won't self-update. Unless you're modifying the code, | 10 | <li>Your local version of DevDocs won't self-update. Unless you're modifying the code, |
| 11 | I recommend using the hosted version at <a href="http://devdocs.io">devdocs.io</a>. | 11 | I recommend using the hosted version at <a href="https://devdocs.io">devdocs.io</a>. |
| 12 | <li>Run <code>thor docs:list</code> to see all available documentations. | 12 | <li>Run <code>thor docs:list</code> to see all available documentations. |
| 13 | <li>Run <code>thor docs:download <name></code> to download documentations. | 13 | <li>Run <code>thor docs:download <name></code> to download documentations. |
| 14 | <li>Run <code>thor docs:download --installed</code> to update all downloaded documentations. | 14 | <li>Run <code>thor docs:download --installed</code> to update all downloaded documentations. |
| @@ -69,6 +69,6 @@ app.templates.androidWarning = """ · 54 unmodified lines | |||
| 69 | <h2 class="_intro-title">Hi there</h2> | 69 | <h2 class="_intro-title">Hi there</h2> |
| 70 | <p>DevDocs is running inside an Android WebView. Some features may not work properly. | 70 | <p>DevDocs is running inside an Android WebView. Some features may not work properly. |
| 71 | <p>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. | 71 | <p>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. |
| 72 | <p>To install DevDocs on your phone, visit <a href="http://devdocs.io" target="_blank" rel="noopener">devdocs.io</a> in Chrome and select "Add to home screen" in the menu. | 72 | <p>To install DevDocs on your phone, visit <a href="https://devdocs.io" target="_blank" rel="noopener">devdocs.io</a> in Chrome and select "Add to home screen" in the menu. |
| 73 | </div> | 73 | </div> |
| 74 | """ | 74 | """ |
| @@ -253,7 +253,7 @@ class App < Sinatra::Application · 252 unmodified lines | |||
| 253 | before do | 253 | before do |
| 254 | if request.host == OUT_HOST && !request.path.start_with?('/s/') | 254 | if request.host == OUT_HOST && !request.path.start_with?('/s/') |
| 255 | query_string = "?#{request.query_string}" unless request.query_string.empty? | 255 | query_string = "?#{request.query_string}" unless request.query_string.empty? |
| 256 | redirect "http://devdocs.io#{request.path}#{query_string}", 302 | 256 | redirect "https://devdocs.io#{request.path}#{query_string}", 302 |
| 257 | end | 257 | end |
| 258 | end | 258 | end |
| 259 | 259 | ||