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 2022/03/21 20:33:13 UTC
[camel-kamelets] branch main updated: fix: escape text to prevent auto links (2)
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new 7ef5a89 fix: escape text to prevent auto links (2)
7ef5a89 is described below
commit 7ef5a89f424a6b9310042bd022c3a7b3b68cb6a7
Author: Zoran Regvart <zo...@regvart.com>
AuthorDate: Mon Mar 21 21:33:07 2022 +0100
fix: escape text to prevent auto links (2)
Simplify the expression and escape links in examples in the Binding YAML
---
docs/modules/ROOT/examples/js/kamelets.js | 3 +--
docs/modules/ROOT/examples/template/kamelet-options.adoc | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/docs/modules/ROOT/examples/js/kamelets.js b/docs/modules/ROOT/examples/js/kamelets.js
index 2b8f2c8..e02e959 100644
--- a/docs/modules/ROOT/examples/js/kamelets.js
+++ b/docs/modules/ROOT/examples/js/kamelets.js
@@ -124,7 +124,7 @@ function kameletPropertyList (definition) {
Object.entries(definition.properties)
.filter(([name, value]) => definition.required.includes(name))
.sort(([name1, value1], [name2, value2]) => name1.localeCompare(name2))
- .map(([name, value]) => [name, value.example ? value.example : `The ${value.title}`])
+ .map(([name, value]) => [name, value.example ? util.escapeAutoLinks(value.example) : `The ${value.title}`])
)
}
@@ -162,4 +162,3 @@ const kameletBindings = {
},
}),
}
-
diff --git a/docs/modules/ROOT/examples/template/kamelet-options.adoc b/docs/modules/ROOT/examples/template/kamelet-options.adoc
index 5a1f58d..c88415f 100644
--- a/docs/modules/ROOT/examples/template/kamelet-options.adoc
+++ b/docs/modules/ROOT/examples/template/kamelet-options.adoc
@@ -20,7 +20,7 @@ The following table summarizes the configuration options available for the \`{na
| Property| Name| Description| Type| Default| Example
|===
-jsonpathTable::example$yaml/${basename}.kamelet.yaml[query='nodes$.spec.definition.properties.*',cellformats='util.boldLink(name)|value.title|util.description(value)|util.valueAsString(value.type)|util.valueAsString(value.default)|util.escapeAutoLinks(util.valueAsString(value.example))',{requires},transform=kamelets.sort]
+jsonpathTable::example$yaml/${basename}.kamelet.yaml[query='nodes$.spec.definition.properties.*',cellformats='util.boldLink(name)|value.title|util.description(value)|util.valueAsString(value.type)|util.valueAsString(value.default)|util.escapeAutoLinks(value.example)',{requires},transform=kamelets.sort]
endif::[]