Add integration codeowners to sidebar (#32803)

This commit is contained in:
Franck Nijhof 2024-05-16 17:04:09 +02:00 committed by GitHub
parent 1a7afc8203
commit fa5340c915
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 36 additions and 3 deletions

View File

@ -75,3 +75,39 @@
</div> </div>
{%- endif -%} {%- endif -%}
</section> </section>
<section class="aside-module grid__item one-whole lap-one-half">
<div class='section'>
<h1 class="title delta">Code owners</h1>
{% if page.ha_codeowners %}
{% assign ha_project = false %}
{% for codeowner in page.ha_codeowners %}
{% if codeowner contains "@home-assistant/" %}
{% assign ha_project = true %}
{% endif %}
{% endfor %}
{% if ha_project %}
<div class="section">
This integration is being maintained by the Home Assistant project.
</div>
{% else %}
<div class="section">
We are incredibly grateful to the following contributors who currently maintain this integration:<br />
</div>
<div class="section">
{%- for codeowner in page.ha_codeowners -%}
{%- assign clean_codeowner = codeowner | replace: "@", "" -%}
<a href="https://github.com/{{ clean_codeowner }}" target="_blank"><i class="icon-github"></i> {{ codeowner }}</a><br />
{%- endfor -%}
</div>
{% endif %}
{% else %}
<div class="section">
This integration is community maintained.<br />
If you are a developer and would like to help, feel free to contribute!
</div>
{% endif %}
</div>
</section>

View File

@ -24,9 +24,6 @@ regenerate: false
{%- assign components_by_version = site.integrations | group_components_by_release -%} {%- assign components_by_version = site.integrations | group_components_by_release -%}
{%- assign categories = components | map: 'ha_category' | join: ',' | downcase | split: ',' | uniq | sort -%} {%- assign categories = components | map: 'ha_category' | join: ',' | downcase | split: ',' | uniq | sort -%}
<p class='note'>
Support for these integrations is provided by the Home Assistant community.
</p>
<div class="grid"> <div class="grid">
<div class="grid__item one-sixth lap-one-whole palm-one-whole"> <div class="grid__item one-sixth lap-one-whole palm-one-whole">