From fa5340c91581730769d960e21ae688a80761f44c Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 16 May 2024 17:04:09 +0200 Subject: [PATCH] Add integration codeowners to sidebar (#32803) --- .../asides/component_navigation.html | 36 +++++++++++++++++++ source/integrations/index.html | 3 -- 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/source/_includes/asides/component_navigation.html b/source/_includes/asides/component_navigation.html index 1d1b118210f..0d714b0628e 100644 --- a/source/_includes/asides/component_navigation.html +++ b/source/_includes/asides/component_navigation.html @@ -75,3 +75,39 @@ {%- endif -%} + +
+
+

Code owners

+ {% 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 %} +
+ This integration is being maintained by the Home Assistant project. +
+ {% else %} +
+ We are incredibly grateful to the following contributors who currently maintain this integration:
+
+
+ {%- for codeowner in page.ha_codeowners -%} + {%- assign clean_codeowner = codeowner | replace: "@", "" -%} + {{ codeowner }}
+ {%- endfor -%} +
+ {% endif %} + {% else %} +
+ This integration is community maintained.
+ If you are a developer and would like to help, feel free to contribute! +
+ {% endif %} +
+
+ diff --git a/source/integrations/index.html b/source/integrations/index.html index 69959e54f68..8ca31308fc1 100644 --- a/source/integrations/index.html +++ b/source/integrations/index.html @@ -24,9 +24,6 @@ regenerate: false {%- assign components_by_version = site.integrations | group_components_by_release -%} {%- assign categories = components | map: 'ha_category' | join: ',' | downcase | split: ',' | uniq | sort -%} -

- Support for these integrations is provided by the Home Assistant community. -