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

[camel-kafka-connector] branch camel-kafka-connector-0.11.x updated: global util functions for compatibility table refs

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

acosentino pushed a commit to branch camel-kafka-connector-0.11.x
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git


The following commit(s) were added to refs/heads/camel-kafka-connector-0.11.x by this push:
     new c7f2729  global util functions for compatibility table refs
c7f2729 is described below

commit c7f272924f4f3e13573f76c2096ab7283e901e48
Author: David Jencks <dj...@apache.org>
AuthorDate: Fri Jan 21 18:04:46 2022 -0800

    global util functions for compatibility table refs
    
    sort compatibility table
    
    fix branch method
---
 docs/modules/ROOT/examples/js/ckc.js | 10 +---------
 docs/modules/ROOT/pages/index.adoc   |  2 +-
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/docs/modules/ROOT/examples/js/ckc.js b/docs/modules/ROOT/examples/js/ckc.js
index c0250db..ae9b5fe 100644
--- a/docs/modules/ROOT/examples/js/ckc.js
+++ b/docs/modules/ROOT/examples/js/ckc.js
@@ -18,13 +18,5 @@
 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}]`,
+    `https://github.com/apache/camel-kafka-connector/tree/camel-kafka-connector-${version}[camel-kafka-connector-${version}]`,
 }
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/index.adoc b/docs/modules/ROOT/pages/index.adoc
index 6e57bae..0b2ebb4 100644
--- a/docs/modules/ROOT/pages/index.adoc
+++ b/docs/modules/ROOT/pages/index.adoc
@@ -41,4 +41,4 @@ The basic idea is reusing the available Camel components as Kafka sink and sourc
 |===
 
 //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}]
+indexTable::[version="*",relative="reference/index.adoc",cellformats="util.ckcRef(pageComponentDisplayVersion, pageComponentVersion)|util.camelRef(camelVersion, camelDocsVersion)|util.kameletsRef(camelKameletsVersion, camelKameletsDocsVersion)|util.kafkaRef(kafkaVersion, kafkaDocsVersion)|lts|ckc.branch(pageComponentVersion)", requires={requires},transform=util.sortCompatibilityItems]