You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2020/12/18 20:10:51 UTC
[camel-quarkus] branch issue/CAMEL-15948 created (now ad394a9)
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a change to branch issue/CAMEL-15948
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git.
at ad394a9 CAMEL-15948: examples.json instead of .adoc files
This branch includes the following new commits:
new ad394a9 CAMEL-15948: examples.json instead of .adoc files
The 1 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.
[camel-quarkus] 01/01: CAMEL-15948: examples.json instead of .adoc
files
Posted by zr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch issue/CAMEL-15948
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit ad394a94958a2c31138a97957becacfc63d95c50
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Fri Dec 18 19:52:30 2020 +0100
CAMEL-15948: examples.json instead of .adoc files
This makes use of a change in the camel-quarkus-examples repository to
generate the `examples.json` file instead of empty `.adoc` files to as
a data source for generating the examples table in
`user-guide/examples.adoc`.
It does this by utilizing `@djencks/asciidoctor-jsonpath` Antora
extension, which similarly to the `@djencks/asciidoctor-antora-indexer`
can generate rows for Asciidoc table.
---
docs/modules/ROOT/pages/user-guide/examples.adoc | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/docs/modules/ROOT/pages/user-guide/examples.adoc b/docs/modules/ROOT/pages/user-guide/examples.adoc
index b1fbd9c..0ecba72 100644
--- a/docs/modules/ROOT/pages/user-guide/examples.adoc
+++ b/docs/modules/ROOT/pages/user-guide/examples.adoc
@@ -1,17 +1,14 @@
= Camel Quarkus Examples
:page-aliases: examples.adoc
-:indexer-version: latest
-:indexer-component: camel-quarkus-examples
-:indexer-module: ROOT
-:indexer-rel-filter: examples/*.adoc
+:quarkus-examples-version: latest
We offer several examples in https://github.com/apache/camel-quarkus-examples[Camel Quarkus examples repository]. To
learn how to use them, please follow the xref:user-guide/first-steps.adoc[First steps] chapter of the User guide.
-Number of Examples: indexCount:[version="{indexer-version}",component="{indexer-component}",module="{indexer-module}",relative="{indexer-rel-filter}"]
+Number of Examples: jsonpathCount:{quarkus-examples-version}@camel-quarkus-examples:ROOT:attachment$examples.json[$[*\]]
[width="100%",cols="3,7",options="header"]
|===
| Example | Description
|===
-indexTable::[version="{indexer-version}",component="{indexer-component}",module="{indexer-module}",relative="{indexer-rel-filter}",cells="=`$\{cqExampleUrl}[$\{cqExampleTitle}]`,cq-example-description"]
+jsonpathTable::{quarkus-examples-version}@camel-quarkus-examples:ROOT:attachment$examples.json['$[*]', '$\{link}[$\{title}],description']