Rename github edit to feedback (#16493)

This commit is contained in:
Franck Nijhof 2021-02-10 16:13:17 +01:00 committed by GitHub
parent db2a9a4a5a
commit 2a5fc2a062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 47 additions and 31 deletions

View File

@ -1,21 +0,0 @@
{% if page.hide_github_edit != true %}
<div class="material-card text feedback">
<b>Help us to improve our documentation</b><br />
Suggest an edit to this page, or provide/view feedback for this page.
<div class="links">
<a
href="{{ site.netlify.repository_url }}/tree/{{ site.netlify.head }}/source/{{ page.path }}" target="_blank"
><i class="icon-edit" /> Edit</a
>
<a
href="{{ site.netlify.repository_url }}/issues/new?template=feedback.yml&url={{ site.netlify.url | url_encode }}{{ page.url | url_encode }}&version={{ site.current_major_version }}.{{
site.current_minor_version }}.{{ site.current_patch_version }}&labels={{ site.netlify.branch }}" target="_blank"
><i class="icon-comment" /> Provide feedback</a
>
<a
href="{{ site.netlify.repository_url }}/issues?utf8=%E2%9C%93&q=%22{{ site.netlify.url | url_encode }}{{ page.url | url_encode }}%22&in=body" target="_blank"
><i class="icon-comments" /> View pending feedback</a
>
</div>
</div>
{% endif %}

View File

@ -0,0 +1,38 @@
{% unless page.feedback == false %}
<div class="material-card text feedback">
<b>Help us to improve our documentation</b><br />
Suggest an edit to this page, or provide/view feedback for this page.
<div class="links">
<a
href="{{ site.netlify.repository_url }}/tree/{{ site.netlify.head }}/source/{{ page.path }}"
target="_blank"
><i class="icon-edit" /> Edit</a
>
{% if page.ha_domain %}
<a
href="{{ site.netlify.repository_url }}/issues/new?template=feedback.yml&url={{ site.netlify.url | url_encode }}{{ page.url | url_encode }}&version={{ site.current_major_version }}.{{
site.current_minor_version }}.{{ site.current_patch_version }}&labels={{ site.netlify.branch }},integration%3A%20{{ page.ha_domain }}"
target="_blank"
><i class="icon-comment" /> Provide feedback</a
>
<a
href="{{ site.netlify.repository_url }}/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22integration%3A+{{ page.ha_domain }}%22"
target="_blank"
><i class="icon-comments" /> View pending feedback</a
>
{% else %}
<a
href="{{ site.netlify.repository_url }}/issues/new?template=feedback.yml&url={{ site.netlify.url | url_encode }}{{ page.url | url_encode }}&version={{ site.current_major_version }}.{{
site.current_minor_version }}.{{ site.current_patch_version }}&labels={{ site.netlify.branch }}"
target="_blank"
><i class="icon-comment" /> Provide feedback</a
>
<a
href="{{ site.netlify.repository_url }}/issues?utf8=%E2%9C%93&q=%22{{ page.url | url_encode }}%22&in=body"
target="_blank"
><i class="icon-comments" /> View pending feedback</a
>
{% endif %}
</div>
</div>
{% endunless %}

View File

@ -13,6 +13,6 @@ layout: default
<hr class="divider" /> <hr class="divider" />
{% endif %} {% endif %}
{{ content }} {{ content }}
{% include edit_github.html %} {% include feedback.html %}
</article> </article>

View File

@ -3,7 +3,7 @@ title: "Home Assistant Blue!"
description: "Where style and performance meet privacy" description: "Where style and performance meet privacy"
sidebar: false sidebar: false
is_homepage: true is_homepage: true
hide_github_edit: true feedback: false
body_id: blue body_id: blue
show_title: false show_title: false
og_image: /images/blue/blue_hero.jpg og_image: /images/blue/blue_hero.jpg

View File

@ -1,8 +1,7 @@
--- ---
title: Home Assistant Conference 2020 title: Home Assistant Conference 2020
show_title: false show_title: false
# is_homepage: true feedback: false
hide_github_edit: true
description: December 13, 2020 we will host the first online Home Assistant Conference. description: December 13, 2020 we will host the first online Home Assistant Conference.
og_image: /images/conference/social.png og_image: /images/conference/social.png
--- ---

View File

@ -3,7 +3,7 @@ title: "Cookbook"
description: "Community maintained list of different ways to use Home Assistant." description: "Community maintained list of different ways to use Home Assistant."
sidebar: false sidebar: false
regenerate: true regenerate: true
hide_github_edit: true feedback: false
--- ---
This is a community curated list of different ways to use Home Assistant. Most This is a community curated list of different ways to use Home Assistant. Most

View File

@ -1,6 +1,7 @@
--- ---
title: "Documentation" title: "Documentation"
description: "Documentation for Home Assistant" description: "Documentation for Home Assistant"
feedback: false
--- ---
The documentation covers beginner to advanced topics around the installation, setup, configuration, and usage of Home Assistant. The documentation covers beginner to advanced topics around the installation, setup, configuration, and usage of Home Assistant.

View File

@ -2,7 +2,7 @@
title: "FAQ" title: "FAQ"
description: "Home Assistant's FAQ" description: "Home Assistant's FAQ"
regenerate: true regenerate: true
hide_github_edit: true feedback: false
--- ---
This is a community curated list of frequently asked questions (FAQ) about the installation, setup, and usage of Home Assistant. If you want to get details about a term, please check the [glossary](/docs/glossary/). This is a community curated list of frequently asked questions (FAQ) about the installation, setup, and usage of Home Assistant. If you want to get details about a term, please check the [glossary](/docs/glossary/).
@ -23,4 +23,3 @@ This is a community curated list of frequently asked questions (FAQ) about the i
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}

View File

@ -4,7 +4,7 @@ sidebar: false
hero_unit: true hero_unit: true
is_homepage: true is_homepage: true
regenerate: true regenerate: true
hide_github_edit: true feedback: false
description: description:
Open source home automation that puts local control and privacy first. Open source home automation that puts local control and privacy first.
--- ---

View File

@ -3,7 +3,7 @@ title: "Integrations"
description: "List of the built-in integrations of Home Assistant." description: "List of the built-in integrations of Home Assistant."
sidebar: false sidebar: false
is_homepage: true is_homepage: true
hide_github_edit: true feedback: false
body_id: components-page body_id: components-page
regenerate: false regenerate: false
--- ---