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-examples.git

commit fb5bae8db45fdffe0a6f7e2520d4e72363974ffd
Author: Zoran Regvart <zregv...@apache.org>
AuthorDate: Fri Dec 18 17:24:13 2020 +0100

    CAMEL-15948: use examples.json
    
    Instead of generating `.adoc` files this generates `examples.json` in
    attachments family of the camel-quarkus-examples documentation
    component. The `examples.json` was generated using SNAPSHOT version of
    `cq-maven-plugin` with changes in
    https://github.com/l2x6/cq-maven-plugin/pull/7
---
 docs/modules/ROOT/attachments/examples.json             |  1 +
 .../modules/ROOT/pages/examples/file-split-log-xml.adoc |  4 ----
 docs/modules/ROOT/pages/examples/health.adoc            |  4 ----
 docs/modules/ROOT/pages/examples/http-log.adoc          |  4 ----
 docs/modules/ROOT/pages/examples/observability.adoc     |  4 ----
 docs/modules/ROOT/pages/examples/rest-json.adoc         |  4 ----
 docs/modules/ROOT/pages/examples/timer-log-cdi.adoc     |  4 ----
 docs/modules/ROOT/pages/examples/timer-log-kotlin.adoc  |  4 ----
 docs/modules/ROOT/pages/examples/timer-log-main.adoc    |  4 ----
 docs/modules/ROOT/pages/examples/timer-log-spring.adoc  |  4 ----
 docs/modules/ROOT/pages/examples/timer-log-xml.adoc     |  4 ----
 docs/modules/ROOT/pages/examples/timer-log.adoc         |  4 ----
 docs/modules/ROOT/pages/index.adoc                      | 17 -----------------
 timer-log/README.adoc                                   |  2 +-
 14 files changed, 2 insertions(+), 62 deletions(-)

diff --git a/docs/modules/ROOT/attachments/examples.json 
b/docs/modules/ROOT/attachments/examples.json
new file mode 100644
index 0000000..8d5803c
--- /dev/null
+++ b/docs/modules/ROOT/attachments/examples.json
@@ -0,0 +1 @@
+[{"title":"Configure a Camel component using CDI","description":"Demonstrates 
how to set-up a Camel component (the `log` component in this case) 
programmatically using 
CDI","link":"https://github.com/apache/camel-quarkus-examples/tree/master/timer-log-cdi"},{"title":"Custom
 `main()`","description":"Shows how to start Camel from a custom `main()` 
method","link":"https://github.com/apache/camel-quarkus-examples/tree/master/timer-log-main"},{"title":"HTTP
 with vanilla JAX-RS or with Camel ` [...]
diff --git a/docs/modules/ROOT/pages/examples/file-split-log-xml.adoc 
b/docs/modules/ROOT/pages/examples/file-split-log-xml.adoc
deleted file mode 100644
index de588d4..0000000
--- a/docs/modules/ROOT/pages/examples/file-split-log-xml.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-= Tokenize a CSV file: A Camel Quarkus example
-:cq-example-title: Tokenize a CSV file
-:cq-example-description: Shows how to define a Camel route in XML for 
tokenizing a CSV a file.
-:cq-example-url: 
https://github.com/apache/camel-quarkus-examples/tree/master/file-split-log-xml
diff --git a/docs/modules/ROOT/pages/examples/health.adoc 
b/docs/modules/ROOT/pages/examples/health.adoc
deleted file mode 100644
index 140eaee..0000000
--- a/docs/modules/ROOT/pages/examples/health.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-= Health: A Camel Quarkus example
-:cq-example-title: Health
-:cq-example-description: Shows how to use Camel health-checks with Quarkus.
-:cq-example-url: 
https://github.com/apache/camel-quarkus-examples/tree/master/health
diff --git a/docs/modules/ROOT/pages/examples/http-log.adoc 
b/docs/modules/ROOT/pages/examples/http-log.adoc
deleted file mode 100644
index e1d21c1..0000000
--- a/docs/modules/ROOT/pages/examples/http-log.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-= HTTP with vanilla JAX-RS or with Camel `platform-http` component: A Camel 
Quarkus example
-:cq-example-title: HTTP with vanilla JAX-RS or with Camel `platform-http` 
component
-:cq-example-description: Shows how to create HTTP endpoints using either the 
RESTEasy
-:cq-example-url: 
https://github.com/apache/camel-quarkus-examples/tree/master/http-log
diff --git a/docs/modules/ROOT/pages/examples/observability.adoc 
b/docs/modules/ROOT/pages/examples/observability.adoc
deleted file mode 100644
index 67f1e9b..0000000
--- a/docs/modules/ROOT/pages/examples/observability.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-= Observability: A Camel Quarkus example
-:cq-example-title: Observability
-:cq-example-description: Demonstrates how to add support for metrics, health 
checks and distributed tracing
-:cq-example-url: 
https://github.com/apache/camel-quarkus-examples/tree/master/observability
diff --git a/docs/modules/ROOT/pages/examples/rest-json.adoc 
b/docs/modules/ROOT/pages/examples/rest-json.adoc
deleted file mode 100644
index 8ee37f0..0000000
--- a/docs/modules/ROOT/pages/examples/rest-json.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-= REST with `platform-http`: A Camel Quarkus example
-:cq-example-title: REST with `platform-http`
-:cq-example-description: Demonstrates how to create a REST service using 
`platform-http` Camel component and Jackson.
-:cq-example-url: 
https://github.com/apache/camel-quarkus-examples/tree/master/rest-json
diff --git a/docs/modules/ROOT/pages/examples/timer-log-cdi.adoc 
b/docs/modules/ROOT/pages/examples/timer-log-cdi.adoc
deleted file mode 100644
index 5a81d05..0000000
--- a/docs/modules/ROOT/pages/examples/timer-log-cdi.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-= Configure a Camel component using CDI: A Camel Quarkus example
-:cq-example-title: Configure a Camel component using CDI
-:cq-example-description: Demonstrates how to set-up a Camel component (the 
`log` component in this case) programmatically using CDI
-:cq-example-url: 
https://github.com/apache/camel-quarkus-examples/tree/master/timer-log-cdi
diff --git a/docs/modules/ROOT/pages/examples/timer-log-kotlin.adoc 
b/docs/modules/ROOT/pages/examples/timer-log-kotlin.adoc
deleted file mode 100644
index 2708bc8..0000000
--- a/docs/modules/ROOT/pages/examples/timer-log-kotlin.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-= Kotlin Hello World: A Camel Quarkus example
-:cq-example-title: Kotlin Hello World
-:cq-example-description: Shows how to define Camel routes using Kotlin 
programming language
-:cq-example-url: 
https://github.com/apache/camel-quarkus-examples/tree/master/timer-log-kotlin
diff --git a/docs/modules/ROOT/pages/examples/timer-log-main.adoc 
b/docs/modules/ROOT/pages/examples/timer-log-main.adoc
deleted file mode 100644
index 4861d1a..0000000
--- a/docs/modules/ROOT/pages/examples/timer-log-main.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-= Custom `main()`: A Camel Quarkus example
-:cq-example-title: Custom `main()`
-:cq-example-description: Shows how to start Camel from a custom `main()` method
-:cq-example-url: 
https://github.com/apache/camel-quarkus-examples/tree/master/timer-log-main
diff --git a/docs/modules/ROOT/pages/examples/timer-log-spring.adoc 
b/docs/modules/ROOT/pages/examples/timer-log-spring.adoc
deleted file mode 100644
index c2fd09d..0000000
--- a/docs/modules/ROOT/pages/examples/timer-log-spring.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-= Spring Dependency Injection: A Camel Quarkus example
-:cq-example-title: Spring Dependency Injection
-:cq-example-description: Shows how to use Spring Dependency Injection when 
defining routes on Camel Quarkus.
-:cq-example-url: 
https://github.com/apache/camel-quarkus-examples/tree/master/timer-log-spring
diff --git a/docs/modules/ROOT/pages/examples/timer-log-xml.adoc 
b/docs/modules/ROOT/pages/examples/timer-log-xml.adoc
deleted file mode 100644
index 8d62e99..0000000
--- a/docs/modules/ROOT/pages/examples/timer-log-xml.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-= XML Hello World: A Camel Quarkus example
-:cq-example-title: XML Hello World
-:cq-example-description: Shows how to define Camel routes using XML.
-:cq-example-url: 
https://github.com/apache/camel-quarkus-examples/tree/master/timer-log-xml
diff --git a/docs/modules/ROOT/pages/examples/timer-log.adoc 
b/docs/modules/ROOT/pages/examples/timer-log.adoc
deleted file mode 100644
index 1034e9d..0000000
--- a/docs/modules/ROOT/pages/examples/timer-log.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-= Timer Hello World: A Camel Quarkus example
-:cq-example-title: Timer Hello World
-:cq-example-description: An example using the Camel timer component to output 
a Hello world message to the console
-:cq-example-url: 
https://github.com/apache/camel-quarkus-examples/tree/master/timer-log
diff --git a/docs/modules/ROOT/pages/index.adoc 
b/docs/modules/ROOT/pages/index.adoc
deleted file mode 100644
index 940a6d9..0000000
--- a/docs/modules/ROOT/pages/index.adoc
+++ /dev/null
@@ -1,17 +0,0 @@
-= Camel Quarkus Examples
-:page-aliases: examples.adoc
-:indexer-version: latest
-:indexer-component: camel-quarkus-examples
-:indexer-module: ROOT
-:indexer-rel-filter: examples/*.adoc
-
-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:camel-quarkus::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}"]
-[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"]
diff --git a/timer-log/README.adoc b/timer-log/README.adoc
index 880cd6b..461d756 100644
--- a/timer-log/README.adoc
+++ b/timer-log/README.adoc
@@ -1,5 +1,5 @@
 = Timer Hello World: A Camel Quarkus example
-:cq-example-description: An example using the Camel timer component to output 
a Hello world message to the console
+:cq-example-description: An example that uses the Camel timer component to 
output a Hello world message to the console
 
 {cq-description}
 

Reply via email to