You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2021/02/04 15:30:19 UTC
[camel-k] 01/02: chore(doc): Use Asciidoc style code blocks instead
of Markdown style
This is an automated email from the ASF dual-hosted git repository.
astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit a3ad3ef6a7a01d2d2696576189ce078ebe0a6330
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Thu Feb 4 13:54:19 2021 +0100
chore(doc): Use Asciidoc style code blocks instead of Markdown style
---
cmd/util/doc-gen/generators/traitdocgen.go | 14 ++++++++------
docs/modules/traits/pages/3scale.adoc | 7 ++++---
docs/modules/traits/pages/affinity.adoc | 15 ++++++++-------
docs/modules/traits/pages/builder.adoc | 7 ++++---
docs/modules/traits/pages/camel.adoc | 7 ++++---
docs/modules/traits/pages/container.adoc | 7 ++++---
docs/modules/traits/pages/cron.adoc | 7 ++++---
docs/modules/traits/pages/dependencies.adoc | 7 ++++---
docs/modules/traits/pages/deployer.adoc | 7 ++++---
docs/modules/traits/pages/deployment.adoc | 7 ++++---
docs/modules/traits/pages/environment.adoc | 7 ++++---
docs/modules/traits/pages/gc.adoc | 7 ++++---
docs/modules/traits/pages/ingress.adoc | 7 ++++---
docs/modules/traits/pages/istio.adoc | 7 ++++---
docs/modules/traits/pages/jolokia.adoc | 7 ++++---
docs/modules/traits/pages/jvm.adoc | 7 ++++---
docs/modules/traits/pages/kamelets.adoc | 7 ++++---
docs/modules/traits/pages/knative-service.adoc | 7 ++++---
docs/modules/traits/pages/knative.adoc | 7 ++++---
docs/modules/traits/pages/master.adoc | 7 ++++---
docs/modules/traits/pages/openapi.adoc | 7 ++++---
docs/modules/traits/pages/owner.adoc | 7 ++++---
docs/modules/traits/pages/pdb.adoc | 7 ++++---
docs/modules/traits/pages/platform.adoc | 7 ++++---
docs/modules/traits/pages/prometheus.adoc | 7 ++++---
docs/modules/traits/pages/pull-secret.adoc | 7 ++++---
docs/modules/traits/pages/quarkus.adoc | 7 ++++---
docs/modules/traits/pages/route.adoc | 7 ++++---
docs/modules/traits/pages/service.adoc | 7 ++++---
docs/modules/traits/pages/tracing.adoc | 7 ++++---
30 files changed, 128 insertions(+), 97 deletions(-)
diff --git a/cmd/util/doc-gen/generators/traitdocgen.go b/cmd/util/doc-gen/generators/traitdocgen.go
index 0e5bc03..e99022c 100644
--- a/cmd/util/doc-gen/generators/traitdocgen.go
+++ b/cmd/util/doc-gen/generators/traitdocgen.go
@@ -29,11 +29,12 @@ import (
"sort"
"strings"
- v1 "github.com/apache/camel-k/pkg/apis/camel/v1"
- "github.com/apache/camel-k/pkg/trait"
"k8s.io/gengo/args"
"k8s.io/gengo/generator"
"k8s.io/gengo/types"
+
+ v1 "github.com/apache/camel-k/pkg/apis/camel/v1"
+ "github.com/apache/camel-k/pkg/trait"
)
const (
@@ -177,13 +178,14 @@ func writeFields(t *types.Type, traitID string, content *[]string) {
res := append([]string(nil), pre...)
res = append(res, adocConfigurationMarkerStart, "== Configuration", "")
res = append(res, "Trait properties can be specified when running any integration with the CLI:")
- res = append(res, "```")
+ res = append(res, "[source,console]")
+ res = append(res, "----")
if len(t.Members) > 1 {
- res = append(res, fmt.Sprintf("kamel run --trait %s.[key]=[value] --trait %s.[key2]=[value2] integration.groovy", traitID, traitID))
+ res = append(res, fmt.Sprintf("$ kamel run --trait %s.[key]=[value] --trait %s.[key2]=[value2] integration.groovy", traitID, traitID))
} else {
- res = append(res, fmt.Sprintf("kamel run --trait %s.[key]=[value] integration.groovy", traitID))
+ res = append(res, fmt.Sprintf("$ kamel run --trait %s.[key]=[value] integration.groovy", traitID))
}
- res = append(res, "```")
+ res = append(res, "----")
res = append(res, "The following configuration options are available:", "")
res = append(res, "[cols=\"2m,1m,5a\"]", "|===")
res = append(res, "|Property | Type | Description", "")
diff --git a/docs/modules/traits/pages/3scale.adoc b/docs/modules/traits/pages/3scale.adoc
index fd7ab9f..b76741d 100755
--- a/docs/modules/traits/pages/3scale.adoc
+++ b/docs/modules/traits/pages/3scale.adoc
@@ -14,9 +14,10 @@ This trait is available in the following profiles: **Kubernetes, Knative, OpenSh
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait 3scale.[key]=[value] --trait 3scale.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait 3scale.[key]=[value] --trait 3scale.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/affinity.adoc b/docs/modules/traits/pages/affinity.adoc
index 6f2cddf..7214600 100755
--- a/docs/modules/traits/pages/affinity.adoc
+++ b/docs/modules/traits/pages/affinity.adoc
@@ -14,9 +14,10 @@ This trait is available in the following profiles: **Kubernetes, Knative, OpenSh
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait affinity.[key]=[value] --trait affinity.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait affinity.[key]=[value] --trait affinity.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
@@ -57,23 +58,23 @@ integration pod(s) should not be co-located with.
* To schedule the integration pod(s) on a specific node using the https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#interlude-built-in-node-labels[built-in node label] `kubernetes.io/hostname`:
+
-[source,shell]
+[source,console]
$ kamel run -t affinity.node-affinity-labels="kubernetes.io/hostname in(node-66-50.hosted.k8s.tld)" ...
* To schedule a single integration pod per node (using the `Exists` operator):
+
-[source,shell]
+[source,console]
$ kamel run -t affinity.pod-anti-affinity-labels="camel.apache.org/integration" ...
* To co-locate the integration pod(s) with other integration pod(s):
+
-[source,shell]
+[source,console]
$ kamel run -t affinity.pod-affinity-labels="camel.apache.org/integration in(it1, it2)" ...
The `*-labels` options follow the requirements from https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors[Label selectors].
They can be multi-valuated, then the requirements list is ANDed, e.g., to schedule a single integration pod per node AND not co-located with the Camel K operator pod(s):
-[source,shell]
+[source,console]
----
$ kamel run -t affinity.pod-anti-affinity-labels="camel.apache.org/integration" -t affinity.pod-anti-affinity-labels="camel.apache.org/component=operator" ...
----
diff --git a/docs/modules/traits/pages/builder.adoc b/docs/modules/traits/pages/builder.adoc
index 3e89d9b..26e5ab3 100755
--- a/docs/modules/traits/pages/builder.adoc
+++ b/docs/modules/traits/pages/builder.adoc
@@ -14,9 +14,10 @@ WARNING: The builder trait is a *platform trait*: disabling it may compromise th
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait builder.[key]=[value] --trait builder.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait builder.[key]=[value] --trait builder.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/camel.adoc b/docs/modules/traits/pages/camel.adoc
index 6331571..59f3db5 100755
--- a/docs/modules/traits/pages/camel.adoc
+++ b/docs/modules/traits/pages/camel.adoc
@@ -13,9 +13,10 @@ WARNING: The camel trait is a *platform trait*: disabling it may compromise the
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait camel.[key]=[value] --trait camel.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait camel.[key]=[value] --trait camel.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/container.adoc b/docs/modules/traits/pages/container.adoc
index 6d72170..b4e3f4a 100755
--- a/docs/modules/traits/pages/container.adoc
+++ b/docs/modules/traits/pages/container.adoc
@@ -15,9 +15,10 @@ WARNING: The container trait is a *platform trait*: disabling it may compromise
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait container.[key]=[value] --trait container.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait container.[key]=[value] --trait container.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/cron.adoc b/docs/modules/traits/pages/cron.adoc
index 9d80895..bebde3e 100755
--- a/docs/modules/traits/pages/cron.adoc
+++ b/docs/modules/traits/pages/cron.adoc
@@ -23,9 +23,10 @@ This trait is available in the following profiles: **Kubernetes, Knative, OpenSh
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait cron.[key]=[value] --trait cron.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait cron.[key]=[value] --trait cron.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/dependencies.adoc b/docs/modules/traits/pages/dependencies.adoc
index c4490ca..3e3fbd3 100755
--- a/docs/modules/traits/pages/dependencies.adoc
+++ b/docs/modules/traits/pages/dependencies.adoc
@@ -14,9 +14,10 @@ WARNING: The dependencies trait is a *platform trait*: disabling it may compromi
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait dependencies.[key]=[value] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait dependencies.[key]=[value] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/deployer.adoc b/docs/modules/traits/pages/deployer.adoc
index ba7f664..efdaec5 100755
--- a/docs/modules/traits/pages/deployer.adoc
+++ b/docs/modules/traits/pages/deployer.adoc
@@ -14,9 +14,10 @@ WARNING: The deployer trait is a *platform trait*: disabling it may compromise t
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait deployer.[key]=[value] --trait deployer.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait deployer.[key]=[value] --trait deployer.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/deployment.adoc b/docs/modules/traits/pages/deployment.adoc
index a09a244..de6f174 100755
--- a/docs/modules/traits/pages/deployment.adoc
+++ b/docs/modules/traits/pages/deployment.adoc
@@ -14,9 +14,10 @@ WARNING: The deployment trait is a *platform trait*: disabling it may compromise
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait deployment.[key]=[value] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait deployment.[key]=[value] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/environment.adoc b/docs/modules/traits/pages/environment.adoc
index ef803ff..896d369 100755
--- a/docs/modules/traits/pages/environment.adoc
+++ b/docs/modules/traits/pages/environment.adoc
@@ -14,9 +14,10 @@ WARNING: The environment trait is a *platform trait*: disabling it may compromis
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait environment.[key]=[value] --trait environment.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait environment.[key]=[value] --trait environment.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/gc.adoc b/docs/modules/traits/pages/gc.adoc
index 51a3b26..375057d 100755
--- a/docs/modules/traits/pages/gc.adoc
+++ b/docs/modules/traits/pages/gc.adoc
@@ -11,9 +11,10 @@ This trait is available in the following profiles: **Kubernetes, Knative, OpenSh
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait gc.[key]=[value] --trait gc.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait gc.[key]=[value] --trait gc.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/ingress.adoc b/docs/modules/traits/pages/ingress.adoc
index df0d455..889670d 100755
--- a/docs/modules/traits/pages/ingress.adoc
+++ b/docs/modules/traits/pages/ingress.adoc
@@ -14,9 +14,10 @@ This trait is available in the following profiles: **Kubernetes**.
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait ingress.[key]=[value] --trait ingress.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait ingress.[key]=[value] --trait ingress.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/istio.adoc b/docs/modules/traits/pages/istio.adoc
index 23a072a..b8fdef0 100755
--- a/docs/modules/traits/pages/istio.adoc
+++ b/docs/modules/traits/pages/istio.adoc
@@ -12,9 +12,10 @@ This trait is available in the following profiles: **Kubernetes, Knative, OpenSh
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait istio.[key]=[value] --trait istio.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait istio.[key]=[value] --trait istio.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/jolokia.adoc b/docs/modules/traits/pages/jolokia.adoc
index e5914ce..0f0499f 100755
--- a/docs/modules/traits/pages/jolokia.adoc
+++ b/docs/modules/traits/pages/jolokia.adoc
@@ -13,9 +13,10 @@ This trait is available in the following profiles: **Kubernetes, Knative, OpenSh
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait jolokia.[key]=[value] --trait jolokia.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait jolokia.[key]=[value] --trait jolokia.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/jvm.adoc b/docs/modules/traits/pages/jvm.adoc
index 9205121..dcf5705 100755
--- a/docs/modules/traits/pages/jvm.adoc
+++ b/docs/modules/traits/pages/jvm.adoc
@@ -13,9 +13,10 @@ WARNING: The jvm trait is a *platform trait*: disabling it may compromise the pl
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait jvm.[key]=[value] --trait jvm.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait jvm.[key]=[value] --trait jvm.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/kamelets.adoc b/docs/modules/traits/pages/kamelets.adoc
index 82da6a2..e4fa394 100755
--- a/docs/modules/traits/pages/kamelets.adoc
+++ b/docs/modules/traits/pages/kamelets.adoc
@@ -13,9 +13,10 @@ WARNING: The kamelets trait is a *platform trait*: disabling it may compromise t
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait kamelets.[key]=[value] --trait kamelets.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait kamelets.[key]=[value] --trait kamelets.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/knative-service.adoc b/docs/modules/traits/pages/knative-service.adoc
index 8051d69..27d91b5 100755
--- a/docs/modules/traits/pages/knative-service.adoc
+++ b/docs/modules/traits/pages/knative-service.adoc
@@ -15,9 +15,10 @@ This trait is available in the following profiles: **Knative**.
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait knative-service.[key]=[value] --trait knative-service.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait knative-service.[key]=[value] --trait knative-service.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/knative.adoc b/docs/modules/traits/pages/knative.adoc
index 2427c8e..4b23f30 100755
--- a/docs/modules/traits/pages/knative.adoc
+++ b/docs/modules/traits/pages/knative.adoc
@@ -17,9 +17,10 @@ This trait is available in the following profiles: **Knative**.
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait knative.[key]=[value] --trait knative.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait knative.[key]=[value] --trait knative.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/master.adoc b/docs/modules/traits/pages/master.adoc
index 4ca20c4..66afead 100755
--- a/docs/modules/traits/pages/master.adoc
+++ b/docs/modules/traits/pages/master.adoc
@@ -17,9 +17,10 @@ This trait is available in the following profiles: **Kubernetes, Knative, OpenSh
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait master.[key]=[value] --trait master.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait master.[key]=[value] --trait master.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/openapi.adoc b/docs/modules/traits/pages/openapi.adoc
index ad814df..1f9c7e5 100755
--- a/docs/modules/traits/pages/openapi.adoc
+++ b/docs/modules/traits/pages/openapi.adoc
@@ -13,9 +13,10 @@ WARNING: The openapi trait is a *platform trait*: disabling it may compromise th
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait openapi.[key]=[value] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait openapi.[key]=[value] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/owner.adoc b/docs/modules/traits/pages/owner.adoc
index f020cd0..20216dc 100755
--- a/docs/modules/traits/pages/owner.adoc
+++ b/docs/modules/traits/pages/owner.adoc
@@ -14,9 +14,10 @@ WARNING: The owner trait is a *platform trait*: disabling it may compromise the
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait owner.[key]=[value] --trait owner.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait owner.[key]=[value] --trait owner.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/pdb.adoc b/docs/modules/traits/pages/pdb.adoc
index fc34890..42c2d32 100755
--- a/docs/modules/traits/pages/pdb.adoc
+++ b/docs/modules/traits/pages/pdb.adoc
@@ -11,9 +11,10 @@ This trait is available in the following profiles: **Kubernetes, Knative, OpenSh
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait pdb.[key]=[value] --trait pdb.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait pdb.[key]=[value] --trait pdb.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/platform.adoc b/docs/modules/traits/pages/platform.adoc
index 959dead..319fb03 100755
--- a/docs/modules/traits/pages/platform.adoc
+++ b/docs/modules/traits/pages/platform.adoc
@@ -17,9 +17,10 @@ WARNING: The platform trait is a *platform trait*: disabling it may compromise t
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait platform.[key]=[value] --trait platform.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait platform.[key]=[value] --trait platform.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/prometheus.adoc b/docs/modules/traits/pages/prometheus.adoc
index 7530ebf..6e11219 100755
--- a/docs/modules/traits/pages/prometheus.adoc
+++ b/docs/modules/traits/pages/prometheus.adoc
@@ -21,9 +21,10 @@ This trait is available in the following profiles: **Kubernetes, Knative, OpenSh
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait prometheus.[key]=[value] --trait prometheus.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait prometheus.[key]=[value] --trait prometheus.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/pull-secret.adoc b/docs/modules/traits/pages/pull-secret.adoc
index 864ae2d..0815ae4 100755
--- a/docs/modules/traits/pages/pull-secret.adoc
+++ b/docs/modules/traits/pages/pull-secret.adoc
@@ -20,9 +20,10 @@ This trait is available in the following profiles: **Kubernetes, Knative, OpenSh
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait pull-secret.[key]=[value] --trait pull-secret.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait pull-secret.[key]=[value] --trait pull-secret.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/quarkus.adoc b/docs/modules/traits/pages/quarkus.adoc
index 1332800..e8531ca 100755
--- a/docs/modules/traits/pages/quarkus.adoc
+++ b/docs/modules/traits/pages/quarkus.adoc
@@ -15,9 +15,10 @@ WARNING: The quarkus trait is a *platform trait*: disabling it may compromise th
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait quarkus.[key]=[value] --trait quarkus.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait quarkus.[key]=[value] --trait quarkus.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/route.adoc b/docs/modules/traits/pages/route.adoc
index 84759de..3e2254e 100755
--- a/docs/modules/traits/pages/route.adoc
+++ b/docs/modules/traits/pages/route.adoc
@@ -11,9 +11,10 @@ This trait is available in the following profiles: **OpenShift**.
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait route.[key]=[value] --trait route.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait route.[key]=[value] --trait route.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/service.adoc b/docs/modules/traits/pages/service.adoc
index ae3da65..7e474ad 100755
--- a/docs/modules/traits/pages/service.adoc
+++ b/docs/modules/traits/pages/service.adoc
@@ -14,9 +14,10 @@ This trait is available in the following profiles: **Kubernetes, OpenShift**.
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait service.[key]=[value] --trait service.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait service.[key]=[value] --trait service.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]
diff --git a/docs/modules/traits/pages/tracing.adoc b/docs/modules/traits/pages/tracing.adoc
index 2387247..735f624 100755
--- a/docs/modules/traits/pages/tracing.adoc
+++ b/docs/modules/traits/pages/tracing.adoc
@@ -16,9 +16,10 @@ This trait is available in the following profiles: **Kubernetes, Knative, OpenSh
== Configuration
Trait properties can be specified when running any integration with the CLI:
-```
-kamel run --trait tracing.[key]=[value] --trait tracing.[key2]=[value2] integration.groovy
-```
+[source,console]
+----
+$ kamel run --trait tracing.[key]=[value] --trait tracing.[key2]=[value2] integration.groovy
+----
The following configuration options are available:
[cols="2m,1m,5a"]