From 543bb1d874b325c67f6fb7a8a2c583b45c62d24f Mon Sep 17 00:00:00 2001 From: Marco Kamner Date: Fri, 2 Oct 2020 18:50:52 +0200 Subject: [PATCH] Move frontmatter redirects to file (#14682) Co-authored-by: Franck Nijhof Co-authored-by: Franck Nijhof --- source/_redirects | 6 ++++++ source/cloud/alexa.markdown | 2 -- source/code_of_conduct/index.markdown | 23 +++++++++++----------- source/getting-started/automation.markdown | 3 --- source/hassio/index.markdown | 13 ++++++------ source/lovelace/index.markdown | 8 ++++---- 6 files changed, 27 insertions(+), 28 deletions(-) diff --git a/source/_redirects b/source/_redirects index 62deaf8eea5..2a62255183b 100644 --- a/source/_redirects +++ b/source/_redirects @@ -76,6 +76,7 @@ /developers/rest_api https://developers.home-assistant.io/docs/api/rest/ /developers/server_sent_events https://developers.home-assistant.io/docs/external_api_server_sent_events/ /developers/websocket_api https://developers.home-assistant.io/docs/api/websocket/ +/developers/code_of_conduct /code_of_conduct # Platform pages to integration pages migration /components/air_pollutants /integrations/air_quality @@ -2071,6 +2072,10 @@ /integrations/switch.knx /integrations/knx#switch /integrations/weather.knx /integrations/knx#weather /integrations/zigbee /integrations/xbee +/integrations/hassio /hassio +/integrations/cloud.alexa /cloud/alexa +/getting-started/automation-create-first /getting-started/automation +/getting-started/automation-2 /getting-started/automation /getting-started/automation-action /docs/automation/action /getting-started/automation-condition /docs/automation/condition /getting-started/automation-examples /docs/automation/examples @@ -2174,6 +2179,7 @@ /lovelace/views /lovelace/dashboards-and-views /lovelace/yaml-mode /lovelace/dashboards-and-views /lovelace/calendar-card /lovelace/calendar +/integrations/lovelace /lovelace # Removed documentation /docs/installation/hassbian /getting-started diff --git a/source/cloud/alexa.markdown b/source/cloud/alexa.markdown index 269b0cd56b6..77cfe7a691b 100644 --- a/source/cloud/alexa.markdown +++ b/source/cloud/alexa.markdown @@ -2,8 +2,6 @@ title: "Alexa via Home Assistant Cloud" description: "Enable the Alexa integration via Home Assistant Cloud integration." sidebar: false -redirect_from: - - /integrations/cloud.alexa/ --- Home Assistant Cloud is a subscription service provided by our partner Nabu Casa, Inc. Check out [the Nabu Casa website](https://www.nabucasa.com/config/amazon_alexa/) for help with the Amazon Alexa integration via Home Assistant Cloud. diff --git a/source/code_of_conduct/index.markdown b/source/code_of_conduct/index.markdown index 494e125502b..a4eaf2e2bc4 100644 --- a/source/code_of_conduct/index.markdown +++ b/source/code_of_conduct/index.markdown @@ -2,7 +2,6 @@ title: "Code of Conduct" description: "The Code of Conduct for Home Assistant projects." sidebar: false -redirect_from: /developers/code_of_conduct/ --- ## Our Pledge @@ -22,23 +21,23 @@ diverse, inclusive, and healthy community. Examples of behavior that contributes to a positive environment for our community include: -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, +- Demonstrating empathy and kindness toward other people +- Being respectful of differing opinions, viewpoints, and experiences +- Giving and gracefully accepting constructive feedback +- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience -* Focusing on what is best not just for us as individuals, but for the +- Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: -* The use of sexualized language or imagery, and sexual attention or +- The use of sexualized language or imagery, and sexual attention or advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email +- Trolling, insulting or derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or email address, without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a +- Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities @@ -112,7 +111,7 @@ Violating these terms may lead to a permanent ban. ### 4. Permanent Ban **Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an +standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. **Consequence**: A permanent ban from any sort of public interaction within diff --git a/source/getting-started/automation.markdown b/source/getting-started/automation.markdown index 3ccd5f801ff..67082f494f9 100644 --- a/source/getting-started/automation.markdown +++ b/source/getting-started/automation.markdown @@ -1,9 +1,6 @@ --- title: "Automating Home Assistant" description: "A quick intro on getting your first automation going." -redirect_from: - - /getting-started/automation-create-first/ - - /getting-started/automation-2/ --- Once your devices are set up, it's time to put the cherry on the pie: automation. In this guide we're going to create a simple automation rule to **turn on the lights when the sun sets**. diff --git a/source/hassio/index.markdown b/source/hassio/index.markdown index 5241e043899..298110c7a08 100644 --- a/source/hassio/index.markdown +++ b/source/hassio/index.markdown @@ -1,7 +1,6 @@ --- title: "Home Assistant" description: "Manage your Home Assistant and custom add-ons." -redirect_from: /integrations/hassio/ --- Home Assistant turns your Raspberry Pi (or another device) into the ultimate home automation hub. With Home Assistant, you can focus on integrating your devices and writing automations. @@ -32,14 +31,14 @@ Home Assistant users can update via the 'Supervisor' panel in the UI when a new Home Assistant dashboard with upgrade notification (under the hamburger menu -> Supervisor)

-[Google Assistant]: /addons/google_assistant/ -[Snips.ai]: /addons/snips/ -[Let's Encrypt]: /addons/lets_encrypt/ -[Duck DNS]: /addons/duckdns/ +[google assistant]: /addons/google_assistant/ +[snips.ai]: /addons/snips/ +[let's encrypt]: /addons/lets_encrypt/ +[duck dns]: /addons/duckdns/ [forums]: https://community.home-assistant.io/c/hass-io [comm-add-ons]: https://community.home-assistant.io/tags/hassio-repository [all]: /addons/ [chat]: https://discord.gg/K3UVxJd -[Home Assistant Operating System]: https://github.com/home-assistant/operating-system -[Home Assistant Core]: https://www.home-assistant.io/docs/installation/ +[home assistant operating system]: https://github.com/home-assistant/operating-system +[home assistant core]: https://www.home-assistant.io/docs/installation/ [install]: /hassio/installation/ diff --git a/source/lovelace/index.markdown b/source/lovelace/index.markdown index 76e6ae33bd0..ef7ab61eeef 100644 --- a/source/lovelace/index.markdown +++ b/source/lovelace/index.markdown @@ -29,7 +29,7 @@ To try it yourself, check out [the demo](https://demo.home-assistant.io). ## Additional Lovelace Resources -* [Awesome HA](https://www.awesome-ha.com/#lovelace-ui) -* [Community Custom Cards](https://github.com/custom-cards) -* [Home Assistant Cards](https://home-assistant-cards.bessarabov.com/) -* [Material Design Icons](https://materialdesignicons.com/tag/community) +- [Awesome HA](https://www.awesome-ha.com/#lovelace-ui) +- [Community Custom Cards](https://github.com/custom-cards) +- [Home Assistant Cards](https://home-assistant-cards.bessarabov.com/) +- [Material Design Icons](https://materialdesignicons.com/tag/community)