From f006544cb63a5a0335bf54bd37ee69be1ca46474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Pobo=C5=99il?= Date: Tue, 31 Jan 2017 10:46:05 +0100 Subject: [PATCH] Fixed menu to contain also iOS. (#1851) * Fixed menu to contain also iOS. Because article it also about iOS. * Changed URL in link. * Renamed android page to mobile. * Added redirect_from for mobile page from old path. * Fixed formatting in mobile page. --- Gemfile | 1 + Gemfile.lock | 3 +++ _config.yml | 1 + source/_includes/asides/getting_started_navigation.html | 2 +- source/getting-started/{android.markdown => mobile.markdown} | 5 +++-- 5 files changed, 9 insertions(+), 3 deletions(-) rename source/getting-started/{android.markdown => mobile.markdown} (93%) diff --git a/Gemfile b/Gemfile index 7c767a72f86..a1d627a356a 100644 --- a/Gemfile +++ b/Gemfile @@ -20,6 +20,7 @@ end group :jekyll_plugins do gem 'jekyll-paginate' + gem 'jekyll-redirect-from' gem 'jekyll-sitemap' gem 'jekyll-time-to-read' gem 'octopress', '~> 3.0' diff --git a/Gemfile.lock b/Gemfile.lock index a3056e867c4..a64797568a6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -27,6 +27,8 @@ GEM rouge (~> 1.7) safe_yaml (~> 1.0) jekyll-paginate (1.1.0) + jekyll-redirect-from (0.11.0) + jekyll (>= 2.0) jekyll-sass-converter (1.3.0) sass (~> 3.2) jekyll-sitemap (0.11.0) @@ -118,6 +120,7 @@ DEPENDENCIES haml (~> 4.0) jekyll (~> 3.0) jekyll-paginate + jekyll-redirect-from jekyll-sitemap jekyll-time-to-read octopress (~> 3.0) diff --git a/_config.yml b/_config.yml index 1b7ab55bebb..545f65d9f55 100644 --- a/_config.yml +++ b/_config.yml @@ -49,6 +49,7 @@ kramdown: highlighter: rouge gems: + - jekyll-redirect-from - jekyll-time-to-read - octopress-filters - octopress-include-tag diff --git a/source/_includes/asides/getting_started_navigation.html b/source/_includes/asides/getting_started_navigation.html index abb7fb41210..e1be992d947 100644 --- a/source/_includes/asides/getting_started_navigation.html +++ b/source/_includes/asides/getting_started_navigation.html @@ -67,7 +67,7 @@
  • {% active_link {{site_root}}/topics/ Advanced Topics %}
  • {% active_link {{site_root}}/details/ Details %}
  • -
  • {% active_link /getting-started/android/ Add to Android Homescreen %}
  • +
  • {% active_link /getting-started/mobile/ Add to Android/iOS Homescreen %}
  • {% active_link /getting-started/browsers/ Browser Compatibility List %}
  • diff --git a/source/getting-started/android.markdown b/source/getting-started/mobile.markdown similarity index 93% rename from source/getting-started/android.markdown rename to source/getting-started/mobile.markdown index 2ef656adf82..8654bc3f755 100644 --- a/source/getting-started/android.markdown +++ b/source/getting-started/mobile.markdown @@ -7,11 +7,12 @@ sidebar: true comments: false sharing: true footer: true +redirect_from: /getting-started/android/ --- Home Assistant is not available on the Play Store or App Store. Instead, Home Assistant leverages the new W3C [manifest.json](https://w3c.github.io/manifest/) support, allowing mobile devices to add the "web app" to your homescreen as if it was native. -On Android: +# On Android: 1. Open Chrome 2. Navigate to your Home Assistant instance @@ -23,7 +24,7 @@ On Android:

    -On iOS: +# On iOS: 1. Open Safari 2. Navigate to your Home Assistant instance