You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dj...@apache.org on 2022/01/25 08:30:24 UTC

[camel-website] branch main updated (c431898 -> 581abd1)

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

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


    from c431898  feat: add 'Supports Java 11' for Kamelets (#765)
     new 7b99ac9  global ref functions for compatibility tables
     new 581abd1  Add new camel-k 1.8.x,camel-k-runtime 1.11.x, kamelets 0.7.x releases

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 antora-playbook-snippets/antora-playbook.yml |  3 +++
 util/jsonpath-util.js                        | 35 ++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)

[camel-website] 01/02: global ref functions for compatibility tables

Posted by dj...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 7b99ac9ce9d570056df36269f37e4c00469d646b
Author: David Jencks <dj...@apache.org>
AuthorDate: Fri Jan 21 22:45:55 2022 -0800

    global ref functions for compatibility tables
---
 util/jsonpath-util.js | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/util/jsonpath-util.js b/util/jsonpath-util.js
index 5cce308..60b4621 100644
--- a/util/jsonpath-util.js
+++ b/util/jsonpath-util.js
@@ -105,6 +105,41 @@ module.exports = {
   valueAsString: (value) => {
     return value === undefined ? '' : `${value}`
   },
+
+//  Compatibility table support
+  camelRef: (version, docVersion) => (docVersion === 'none') ? version : `xref:${docVersion}@components:ROOT:index.adoc[${version}]`,
+
+  ckRef: (version, docVersion) => (docVersion === 'none') ? version : `xref:${docVersion}@camel-k:ROOT:index.adoc[${version}]`,
+
+  ckcRef: (version, docVersion) => (docVersion === 'none') ? version : `xref:${docVersion}@camel-kafka-connector:ROOT:index.adoc[${version}]`,
+
+  kameletsRef: (version, docVersion) => (docVersion === 'none') ? version : `xref:${docVersion}@camel-kamelets:ROOT:index.adoc[${version}]`,
+
+  camelQuarkusRef: (version, docVersion) => (docVersion === 'none') ? version : `xref:${docVersion}@camel-quarkus:ROOT:index.adoc[${version}]`,
+
+// External dependency links for compatibility tables
+  graalvmRef: (version, docVersion) => `https://www.graalvm.org/${docVersion}/docs/[${version}]`,
+
+  kafkaRef: (version, docVersion) => `https://kafka.apache.org/${docVersion}/documentation.html[${version}]`,
+
+  quarkusRef: (version) => `https://quarkus.io/guides[${version}]`,
+
+  //Sorts next, then versions descending
+  sortCompatibilityItems: (items) => items.sort((t1, t2) => {
+    const v1 = t1['page-component-version']
+    const v2 = t2['page-component-version']
+    if (v1 === v2) return 0
+    if ((v1 === 'next') || !v2) return -1
+    if ((v2 === 'next') || !v1) return 1
+    const v1s = v1.split('.').map((t) => Number(t))
+    const v2s = v2.split('.').map((t) => Number(t))
+    let i
+    for (i = 0; i < v1s.length; i++) {
+      if (i === v2s.length) return -1
+      if (v1s[i] !== v2s[i]) return v2s[i] - v1s[i] // could be a problem with NaN?
+    }
+    return 1
+  })
 }
 
 function trueEnough (value) {

[camel-website] 02/02: Add new camel-k 1.8.x, camel-k-runtime 1.11.x, kamelets 0.7.x releases

Posted by dj...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 581abd16f377c42f7b744323339f198a1c0dd9b5
Author: David Jencks <dj...@apache.org>
AuthorDate: Fri Jan 21 22:54:21 2022 -0800

    Add new camel-k 1.8.x,camel-k-runtime 1.11.x, kamelets 0.7.x releases
---
 antora-playbook-snippets/antora-playbook.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/antora-playbook-snippets/antora-playbook.yml b/antora-playbook-snippets/antora-playbook.yml
index d0ae7d2..0cf7bf3 100644
--- a/antora-playbook-snippets/antora-playbook.yml
+++ b/antora-playbook-snippets/antora-playbook.yml
@@ -38,6 +38,7 @@ content:
     - url: https://github.com/apache/camel-k.git
       branches:
         - main
+        - release-1.8.x
         - release-1.7.x
         - release-1.6.x
         - release-1.4.x
@@ -46,6 +47,7 @@ content:
     - url: https://github.com/apache/camel-k-runtime.git
       branches:
         - main
+        - release-1.11.x
         - release-1.10.x
         - release-1.9.x
       start_path: docs
@@ -53,6 +55,7 @@ content:
     - url: https://github.com/apache/camel-kamelets.git
       branches:
         - main
+        - 0.7.x
         - 0.6.x
         - 0.5.x
       start_path: docs