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 <zregv...@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']