From a7501765dc1042fc86b4936e1154ae28dd3b4c2b Mon Sep 17 00:00:00 2001 From: Dan Macpherson Date: Fri, 28 Mar 2025 15:10:03 +1000 Subject: [PATCH] Rebranding "Other Products" to "Partners" --- archetypes/pattern/_index.adoc | 4 ++++ config.yaml | 2 +- .../ansible-edge-gitops-kasten/_index.md | 2 +- content/patterns/hypershift/_index.adoc | 2 +- .../multicloud-gitops-Portworx/_index.md | 2 +- layouts/partials/menu-patterns-browser.html | 12 ++++++------ layouts/patterns/list.json.json | 16 ++++++++-------- static/js/patterns-browser-v2.js | 6 +++--- 8 files changed, 25 insertions(+), 21 deletions(-) diff --git a/archetypes/pattern/_index.adoc b/archetypes/pattern/_index.adoc index 77d47b94f..e8fd12e04 100644 --- a/archetypes/pattern/_index.adoc +++ b/archetypes/pattern/_index.adoc @@ -10,6 +10,10 @@ industries: - Industry 1 - Industry 2 - etc +partners: +- partner 1 +- partner 2 +- etc links: install: arch: diff --git a/config.yaml b/config.yaml index 988f8b25d..e86cc6697 100644 --- a/config.yaml +++ b/config.yaml @@ -28,7 +28,7 @@ markup: taxonomies: industry: 'industries' rh_product: 'rh_products' - other_product: 'other_products' + partners: 'partners' blog_tag: 'blog_tags' mediaTypes: diff --git a/content/patterns/ansible-edge-gitops-kasten/_index.md b/content/patterns/ansible-edge-gitops-kasten/_index.md index e4983212b..c110e46fd 100644 --- a/content/patterns/ansible-edge-gitops-kasten/_index.md +++ b/content/patterns/ansible-edge-gitops-kasten/_index.md @@ -9,7 +9,7 @@ rh_products: - Red Hat OpenShift Virtualization - Red Hat Enterprise Linux - Red Hat OpenShift Data Foundation -other_products: +partners: - Veeam Kasten industries: - Chemical diff --git a/content/patterns/hypershift/_index.adoc b/content/patterns/hypershift/_index.adoc index 10cb87868..858a5a157 100644 --- a/content/patterns/hypershift/_index.adoc +++ b/content/patterns/hypershift/_index.adoc @@ -6,7 +6,7 @@ summary: This pattern is for deploying the Hosted Control Plane (HyperShift) ser rh_products: - Red Hat OpenShift Container Platform - Red Hat MultiCluster Engine -other_products: +partners: - AWS Controller for Kubernetes industries: - Infrastructure diff --git a/content/patterns/multicloud-gitops-Portworx/_index.md b/content/patterns/multicloud-gitops-Portworx/_index.md index d138f59d8..ad415462e 100644 --- a/content/patterns/multicloud-gitops-Portworx/_index.md +++ b/content/patterns/multicloud-gitops-Portworx/_index.md @@ -6,7 +6,7 @@ summary: This pattern helps you develop and deploy applications on an open hybri rh_products: - Red Hat OpenShift Container Platform - Red Hat Advanced Cluster Management -other_products: +partners: - Portworx Enterprise industries: - General diff --git a/layouts/partials/menu-patterns-browser.html b/layouts/partials/menu-patterns-browser.html index 2874d0576..28bf647b1 100644 --- a/layouts/partials/menu-patterns-browser.html +++ b/layouts/partials/menu-patterns-browser.html @@ -75,12 +75,12 @@

- +
-

-

-
+
-
+
diff --git a/layouts/patterns/list.json.json b/layouts/patterns/list.json.json index a78835d9d..146663a2a 100644 --- a/layouts/patterns/list.json.json +++ b/layouts/patterns/list.json.json @@ -17,14 +17,14 @@ {{- $rh_products_filter_types := slice "AND" "OR" }} {{- $rh_products_dict := dict "filter_list" $rh_products_list "filter_types" $rh_products_filter_types }} - {{/* Other Products */}} - {{- $other_products := .Site.Taxonomies.other_products }} - {{- $other_products_list := slice }} - {{- range $index, $other_product := $other_products.Alphabetical }} - {{- $other_products_list = $other_products_list | append (dict "Name" $other_product.Name "LinkTitle" $other_product.Page.LinkTitle) }} + {{/* Partners */}} + {{- $partners := .Site.Taxonomies.partners }} + {{- $partners_list := slice }} + {{- range $index, $partners := $partners.Alphabetical }} + {{- $partners_list = $partners_list | append (dict "Name" $partners.Name "LinkTitle" $partners.Page.LinkTitle) }} {{- end }} - {{- $other_products_filter_types := slice "AND" "OR" }} - {{- $other_products_dict := dict "filter_list" $other_products_list "filter_types" $other_products_filter_types }} + {{- $partners_filter_types := slice "AND" "OR" }} + {{- $partners_dict := dict "filter_list" $partners_list "filter_types" $partners_filter_types }} {{/* Industries */}} {{- $industries := .Site.Taxonomies.industries }} @@ -43,6 +43,6 @@ {{- $tiers_filter_types := slice "OR" }} {{- $tiers_dict := dict "filter_list" $tiers_list "filter_types" $tiers_filter_types }} - {{- $filter_categories := dict "rh_products" $rh_products_dict "other_products" $other_products_dict "industries" $industries_dict "tier" $tiers_dict -}} + {{- $filter_categories := dict "rh_products" $rh_products_dict "partners" $partners_dict "industries" $industries_dict "tier" $tiers_dict -}} {{- dict "patterns" $pattern_list "filter_categories" $filter_categories | jsonify }} {{- end }} diff --git a/static/js/patterns-browser-v2.js b/static/js/patterns-browser-v2.js index 4b39383a0..74c75a45f 100644 --- a/static/js/patterns-browser-v2.js +++ b/static/js/patterns-browser-v2.js @@ -121,8 +121,8 @@ function getParams() { enabledParams.filters.industries = urlParams.get("industries_filter"); enabledParams.categories.rh_products = urlParams.getAll("rh_products"); enabledParams.filters.rh_products = urlParams.get("rh_products_filter"); - enabledParams.categories.other_products = urlParams.getAll("other_products"); - enabledParams.filters.other_products = urlParams.get("other_products_filter"); + enabledParams.categories.partners = urlParams.getAll("partners"); + enabledParams.filters.partners = urlParams.get("partners_filter"); return enabledParams; } @@ -401,6 +401,6 @@ patternsData.then(output => { renderFilter("TiersItems", "tier", output.filter_categories.tier, enabledParams.categories.tier, enabledParams.filters.tier); renderFilter("IndustriesItems", "industries", output.filter_categories.industries, enabledParams.categories.industries, enabledParams.filters.industries); renderFilter("RhProductsItems", "rh_products", output.filter_categories.rh_products, enabledParams.categories.rh_products, enabledParams.filters.rh_products); - renderFilter("OtherProductsItems", "other_products", output.filter_categories.other_products, enabledParams.categories.other_products, enabledParams.filters.other_products); + renderFilter("PartnersItems", "partners", output.filter_categories.partners, enabledParams.categories.partners, enabledParams.filters.partners); renderFilteredCards(output.patterns, output.filter_categories) });