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/19 18:07:13 UTC

[camel-kafka-connector] branch main updated: CAMEL-WEBSITE #701: generated RI compatibility table on home page, removing separate page for table.

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-kafka-connector.git


The following commit(s) were added to refs/heads/main by this push:
     new 88a745f  CAMEL-WEBSITE #701: generated RI compatibility table on home page, removing separate page for table.
88a745f is described below

commit 88a745f6e006488b429af629ac9099b68ce77b06
Author: David Jencks <dj...@apache.org>
AuthorDate: Mon Jan 17 18:05:03 2022 -0800

    CAMEL-WEBSITE #701: generated RI compatibility table on home page, removing separate page for table.
---
 docs/antora.yml                                    |  2 ++
 docs/modules/ROOT/examples/js/ckc.js               | 30 ++++++++++++++++++++++
 docs/modules/ROOT/nav.adoc                         |  1 -
 docs/modules/ROOT/pages/index.adoc                 | 17 ++++++++++++
 .../user-guide/camel-compatibility-matrix.adoc     | 25 ------------------
 5 files changed, 49 insertions(+), 26 deletions(-)

diff --git a/docs/antora.yml b/docs/antora.yml
index 2e4aad3..0f0e3cd3 100644
--- a/docs/antora.yml
+++ b/docs/antora.yml
@@ -28,9 +28,11 @@ nav:
 
 asciidoc:
   attributes:
+    requires: "'util=camel-website-util,ckc=xref:js/ckc.js'"
     prerelease: true
     camel-version: 3.14.0
     camel-docs-version: 3.14.x
     camel-kamelets-version: 0.6.0
     camel-kamelets-docs-version: 0.6.x
     kafka-version: 2.8.0
+    kafka-docs-version: 28
diff --git a/docs/modules/ROOT/examples/js/ckc.js b/docs/modules/ROOT/examples/js/ckc.js
new file mode 100644
index 0000000..c0250db
--- /dev/null
+++ b/docs/modules/ROOT/examples/js/ckc.js
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+module.exports = {
+  branch: (version) =>  version === 'next' ?
+    'https://github.com/apache/camel-kafka-connector[main]' :
+    `https://github.com/apache/camel-kafka-connectortree/camel-kafka-connector-${version}[camel-kafka-connector-${version}]`,
+
+  camelRef: (version, docVersion) => `xref:${docVersion}@components:ROOT:index.adoc[${version}]`,
+
+  ckcRef: (version, docVersion) => `xref:${version}@camel-kafka-connector:ROOT:index.adoc[${docVersion}]`,
+
+  kafkaRef: (version, docVersion) => `https://kafka.apache.org/${docVersion}/documentation.html[${version}]`,
+
+  kameletsRef: (version, docVersion) => `xref:${docVersion}@camel-kamelets:ROOT:index.adoc[${version}]`,
+}
\ No newline at end of file
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index e04d4b0..be80b84 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -13,7 +13,6 @@
 *** xref:user-guide/extending-connector/archetype-connector.adoc[Extensible connector archetype]
 *** xref:user-guide/extending-connector/archetype-dataformat-connector.adoc[Extensible Dataformat connector archetype]
 *** xref:user-guide/extending-connector/archetype-apicurio-connector.adoc[Extensible Apicurio connector archetype]
-** xref:user-guide/camel-compatibility-matrix.adoc[Apache Camel compatibility matrix]
 * xref:contributor-guide/index.adoc[Contributor guide]
 ** xref:contributor-guide/testing.adoc[Testing]
 ** xref:contributor-guide/troubleshooting.adoc[Troubleshooting]
diff --git a/docs/modules/ROOT/pages/index.adoc b/docs/modules/ROOT/pages/index.adoc
index 66f46eb..53a82ae 100644
--- a/docs/modules/ROOT/pages/index.adoc
+++ b/docs/modules/ROOT/pages/index.adoc
@@ -25,3 +25,20 @@ The basic idea is reusing the available Camel components as Kafka sink and sourc
 * xref:user-guide/index.adoc[User guide]
 * xref:contributor-guide/index.adoc[Contributor guide]
 * xref:reference/index.adoc[Connectors reference]
+
+== Compatibility Matrix
+
+[caption=]
+.Compatibility between Camel-Kafka-Connector and dependencies
+[width="100%",cols="4,2,2,2,1,3",options="header",]
+|===
+|Camel-Kafka-Connector Version
+|Camel Version
+|Kamelets Version
+|Kafka Version
+|LTS Until
+|Branch
+|===
+
+//cannot use top level index.adoc as the page with the query is always omitted.
+indexTable::[version="*",relative="reference/index.adoc",cellformats="ckc.ckcRef(pageComponentVersion, pageComponentDisplayVersion)|ckc.camelRef(camelVersion, camelDocsVersion)|ckc.kameletsRef(camelKameletsVersion, camelKameletsDocsVersion)|ckc.kafkaRef(kafkaVersion, kafkaDocsVersion)|lts|ckc.branch(pageComponentVersion)", requires={requires}]
diff --git a/docs/modules/ROOT/pages/user-guide/camel-compatibility-matrix.adoc b/docs/modules/ROOT/pages/user-guide/camel-compatibility-matrix.adoc
deleted file mode 100644
index 0c31eb6..0000000
--- a/docs/modules/ROOT/pages/user-guide/camel-compatibility-matrix.adoc
+++ /dev/null
@@ -1,25 +0,0 @@
-[[CamelCompatibilityMatrix-CamelCompatibilityMatrix]]
-= Camel Compatibility Matrix
-
-In this section we report the compatibility matrix between Camel and Camel Kafka Connector projects
-
-[width="100%",cols="4,2,2,1,3",options="header",]
-|=================================================================================================
-|Camel-Kafka-Connector Version |Camel-Version     |Kafka-Version |LTS |Branch  
-|0.1.0                         |3.1.0             |2.4.1         |no  |-
-|0.2.0                         |3.2.0             |2.4.1         |no  |-
-|0.3.0                         |3.3.0             |2.4.1         |no  |camel-kafka-connector-0.3.x
-|0.4.0                         |3.4.2             |2.5.0         |yes |camel-kafka-connector-0.4.x
-|0.4.4                         |3.4.4             |2.5.0         |yes |camel-kafka-connector-0.4.x
-|0.5.0                         |3.5.0             |2.5.0         |no  |camel-kafka-connector-0.5.x
-|0.6.0                         |3.6.0             |2.5.0         |no  |camel-kafka-connector-0.6.x
-|0.6.1                         |3.6.1             |2.5.0         |no  |camel-kafka-connector-0.6.x
-|0.7.0                         |3.7.0             |2.6.0         |yes |camel-kafka-connector-0.7.x
-|0.7.1                         |3.7.1             |2.6.0         |yes |camel-kafka-connector-0.7.x
-|0.7.2                         |3.7.2             |2.6.0         |yes |camel-kafka-connector-0.7.x
-|0.7.3                         |3.7.3             |2.6.0         |yes |camel-kafka-connector-0.7.x
-|0.8.0                         |3.8.0             |2.7.0         |no  |camel-kafka-connector-0.8.x
-|0.9.0                         |3.9.0             |2.7.0         |no  |camel-kafka-connector-0.9.x
-|0.10.0                        |3.10.0            |2.8.0         |no  |camel-kafka-connector-0.10.x
-|0.10.1                        |3.10.0            |2.8.0         |no  |camel-kafka-connector-0.10.x
-|=================================================================================================