Skip to content
Permalink
Browse files
global util functions for compatibility table refs
sort compatibility table

fix branch method
  • Loading branch information
djencks authored and oscerd committed Jan 24, 2022
1 parent 53c4101 commit aaa1eecd09cc0d7c83f80c03d0bdd7573400995d
Showing 2 changed files with 2 additions and 10 deletions.
@@ -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}]`,
}
@@ -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]

0 comments on commit aaa1eec

Please sign in to comment.