This is an automated email from the ASF dual-hosted git repository.

davsclaus 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 3ea3dfb98 chore: fix the website build (absolute link in the 
documenting guide) and remove a leftover .orig file (#3175)
3ea3dfb98 is described below

commit 3ea3dfb986ad062ae5898652d5906e0d6c13ce50
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Nov 17 14:40:33 2026 +0100

    chore: fix the website build (absolute link in the documenting guide) and 
remove a leftover .orig file (#3175)
    
    * chore: use an xref for the body types link in the documenting guide
    
    The website link checker rejects absolute camel.apache.org links.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
    
    * chore: remove a leftover .orig file
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
    
    ---------
    
    Signed-off-by: Claus Ibsen <[email protected]>
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 docs/modules/ROOT/pages/documenting.adoc      |  2 +-
 kamelets/xj-template-action.kamelet.yaml.orig | 67 ---------------------------
 2 files changed, 1 insertion(+), 68 deletions(-)

diff --git a/docs/modules/ROOT/pages/documenting.adoc 
b/docs/modules/ROOT/pages/documenting.adoc
index 6a27d6a39..039a0a104 100644
--- a/docs/modules/ROOT/pages/documenting.adoc
+++ b/docs/modules/ROOT/pages/documenting.adoc
@@ -93,7 +93,7 @@ unchanged." Leave out the other paragraphs when they have 
nothing to add.
   consumer, SMT or destination. When a word of the outside system is needed, 
such as ARN or partition, say what it is
   the first time.
 * *Name the kind of body*, with the words of the
-  https://camel.apache.org/manual/body-types.html[Camel message body types]: 
text, bytes, a stream, a file, a Map (a
+  xref:manual::body-types.adoc[Camel message body types]: text, bytes, a 
stream, a file, a Map (a
   JSON object, parsed), a List. "JSON" alone is not enough: say whether it is 
JSON text or parsed JSON.
 * *Write only what you have checked.* Run the Kamelet (`camel run route.yaml 
--local-kamelet-dir=kamelets`) and look
   at what comes out. Do not copy the documentation of the Camel component 
without checking that the template passes
diff --git a/kamelets/xj-template-action.kamelet.yaml.orig 
b/kamelets/xj-template-action.kamelet.yaml.orig
deleted file mode 100644
index 6a8df5bfe..000000000
--- a/kamelets/xj-template-action.kamelet.yaml.orig
+++ /dev/null
@@ -1,67 +0,0 @@
-# ---------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ---------------------------------------------------------------------------
-apiVersion: camel.apache.org/v1
-kind: Kamelet
-metadata:
-  name: xj-template-action
-  annotations:
-    camel.apache.org/kamelet.support.level: "Stable"
-    camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
-    camel.apache.org/kamelet.icon: 
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG
 [...]
-    camel.apache.org/provider: "Apache Software Foundation"
-    camel.apache.org/kamelet.group: "Actions"
-    camel.apache.org/kamelet.namespace: "Transformation"
-  labels:
-    camel.apache.org/kamelet.type: "action"
-spec:
-  definition:
-    title: "XJ Template Action"
-    description: |-
-      Converts each message from XML to JSON, or from JSON to XML, with an 
XSLT stylesheet that decides what the result looks like.
-
-      Use it to map the XML of one system to the JSON of another, or the other 
way round, when the fixed mapping of `xj-identity-action` does not give the 
shape you need.
-
-      Input: XML or JSON as text, bytes or a stream, as `direction` says. With 
`JSON2XML` the stylesheet sees the JSON as XML in which each value is an 
`object` element with its name and type in `xj:name` and `xj:type` attributes, 
such as `<object xj:name="qty" xj:type="int">2</object>`; select a field with 
`object[@xj:name='qty']`.
-
-      Output: the body is JSON text or XML text. With `XML2JSON` the 
stylesheet must write that same form, which becomes JSON: `<object 
xj:type="object"><object xj:name="qty" xj:type="int">2</object></object>` gives 
`{"qty":2}`. The prefix `xj` stands for the namespace 
`http://camel.apache.org/component/xj`. The headers are kept.
-
-      Good to know: the stylesheet is loaded from a file, the classpath or a 
URL given by the `template` option; it cannot come from the message.
-    required:
-      - direction
-      - template
-    type: object
-    properties:
-      direction:
-        title: Direction
-        description: "Which way to convert: `XML2JSON` turns XML into JSON, 
and `JSON2XML` turns JSON into XML."
-        type: string
-        enum: ["XML2JSON", "JSON2XML"]
-      template:
-        title: Template
-        description: "Where to load the XSLT stylesheet from, not the 
stylesheet itself: `file://` followed by the path of a file, `classpath://` 
followed by a resource in the application, or an `http://` or `https://` URL."
-        type: string
-        example: "file:///opt/templates/order.xsl"
-        pattern: "^(http|https|file|classpath|ref|bean)://.*"
-  dependencies:
-  - "camel:xj"
-  - "camel:kamelet"
-  template:
-    from:
-      uri: kamelet:source
-      steps:
-        - to:
-            uri: 
"xj:?resourceUri={{template}}&transformDirection={{direction}}"

Reply via email to