This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 5a639da4 Regen for commit ee95d8d2914dc053eec6cad66f36a65a4a483349 
(#1656)
5a639da4 is described below

commit 5a639da44067116d054e2a2b0f5c7bddb4f155f5
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Jun 14 21:21:38 2026 +0200

    Regen for commit ee95d8d2914dc053eec6cad66f36a65a4a483349 (#1656)
    
    Signed-off-by: GitHub <[email protected]>
    Co-authored-by: davsclaus <[email protected]>
---
 .../public/_/helpers/order_components.js           | 32 ++++++++++------------
 1 file changed, 14 insertions(+), 18 deletions(-)

diff --git a/antora-ui-camel/public/_/helpers/order_components.js 
b/antora-ui-camel/public/_/helpers/order_components.js
index f70a702f..d361fd5e 100644
--- a/antora-ui-camel/public/_/helpers/order_components.js
+++ b/antora-ui-camel/public/_/helpers/order_components.js
@@ -1,26 +1,22 @@
 'use strict'
 
+const order = [
+  'manual',
+  'camel-core',
+  'components',
+  'camel-spring-boot',
+  'camel-quarkus',
+]
+
 module.exports = (components) =>
   Object.entries(components)
     .sort((a, b) => {
-      const nameA = a[0]
-      const nameB = b[0]
-
-      if (nameA === 'manual') {
-        return -1
-      }
-      if (nameB === 'manual') {
-        return 1
-      }
-
-      if (nameA === 'components') {
-        return -1
-      }
-      if (nameB === 'components') {
-        return 1
-      }
-
-      return nameA.localeCompare(nameB)
+      const idxA = order.indexOf(a[0])
+      const idxB = order.indexOf(b[0])
+      if (idxA !== -1 && idxB !== -1) return idxA - idxB
+      if (idxA !== -1) return -1
+      if (idxB !== -1) return 1
+      return a[0].localeCompare(b[0])
     })
     .reduce((obj, [k, v]) => {
       obj[k] = v

Reply via email to