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

fmariani pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 992481f18613 Fix camel-website build
992481f18613 is described below

commit 992481f18613963a269b98d8fd6552c6db73d287
Author: Croway <[email protected]>
AuthorDate: Fri Jan 16 12:00:39 2026 +0100

    Fix camel-website build
---
 docs/user-manual/modules/ROOT/pages/jbang-commands/camel-jbang-run.adoc | 2 +-
 .../modules/ROOT/{pages => partials}/jbang-commands/examples/run.adoc   | 0
 .../apache/camel/maven/packaging/PrepareCamelJBangCommandsDocMojo.java  | 2 +-
 .../src/main/resources/jbang-command-page.mvel                          | 2 +-
 4 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/docs/user-manual/modules/ROOT/pages/jbang-commands/camel-jbang-run.adoc 
b/docs/user-manual/modules/ROOT/pages/jbang-commands/camel-jbang-run.adoc
index 0dbeab2db679..51f62b485982 100644
--- a/docs/user-manual/modules/ROOT/pages/jbang-commands/camel-jbang-run.adoc
+++ b/docs/user-manual/modules/ROOT/pages/jbang-commands/camel-jbang-run.adoc
@@ -82,5 +82,5 @@ camel run [options]
 
 
 
-include::examples/run.adoc[]
+include::partial$jbang-commands/examples/run.adoc[]
 
diff --git 
a/docs/user-manual/modules/ROOT/pages/jbang-commands/examples/run.adoc 
b/docs/user-manual/modules/ROOT/partials/jbang-commands/examples/run.adoc
similarity index 100%
rename from docs/user-manual/modules/ROOT/pages/jbang-commands/examples/run.adoc
rename to 
docs/user-manual/modules/ROOT/partials/jbang-commands/examples/run.adoc
diff --git 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCamelJBangCommandsDocMojo.java
 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCamelJBangCommandsDocMojo.java
index d6d5e6a7925a..b1897647cf1a 100644
--- 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCamelJBangCommandsDocMojo.java
+++ 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCamelJBangCommandsDocMojo.java
@@ -173,7 +173,7 @@ public class PrepareCamelJBangCommandsDocMojo extends 
AbstractGeneratorMojo {
 
             // Check if an examples file exists for this command
             String examplesFileName = getExamplesFileName(cmd);
-            Path examplesFile = 
docDir.toPath().resolve("jbang-commands/examples/" + examplesFileName);
+            Path examplesFile = 
docDir.toPath().getParent().resolve("partials/jbang-commands/examples/" + 
examplesFileName);
             ctx.put("hasExamplesFile", Files.exists(examplesFile));
             ctx.put("examplesFileName", examplesFileName);
 
diff --git 
a/tooling/maven/camel-package-maven-plugin/src/main/resources/jbang-command-page.mvel
 
b/tooling/maven/camel-package-maven-plugin/src/main/resources/jbang-command-page.mvel
index 57ccae22061d..38e803a96640 100644
--- 
a/tooling/maven/camel-package-maven-plugin/src/main/resources/jbang-command-page.mvel
+++ 
b/tooling/maven/camel-package-maven-plugin/src/main/resources/jbang-command-page.mvel
@@ -51,5 +51,5 @@ camel @{command.fullName} [options]
 @end{}
 @if{hasExamplesFile}
 
-include::examples/@{examplesFileName}[]
+include::partial$jbang-commands/examples/@{examplesFileName}[]
 @end{}

Reply via email to