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/21 08:50:10 UTC
[camel-quarkus] branch master updated: CAMEL-15948: examples.json
instead of .adoc files
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push:
new a108e2a CAMEL-15948: examples.json instead of .adoc files
a108e2a is described below
commit a108e2a668b57249198043e4b3fb02d9b473d5df
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']