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


The following commit(s) were added to refs/heads/main by this push:
     new 8160c2a0 chore: fix html checks for the Simple custom functions blog 
post (#1782)
8160c2a0 is described below

commit 8160c2a05d881c397b1eae769d6efb7e5ddc9adc
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Sep 20 17:00:25 2026 +0200

    chore: fix html checks for the Simple custom functions blog post (#1782)
    
    * chore: fix html checks for the Simple custom functions blog post
    
    The post linked to camel.apache.org pages with absolute URLs; make them
    root-relative like the other blog posts.
    
    The remaining failures were trailing whitespace that is not in the
    Markdown at all: Chroma's YAML lexer emits a whitespace token at the end
    of the last line of every literal block scalar (`key: |`). Add a
    code-block render hook that strips trailing whitespace from highlighted
    output, which fixes every such code sample site-wide and lets the Smooks
    post that had been excluded for the same reason come off the ignore list.
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    
    * chore: link the Simple custom functions post to the 4.22.x language docs
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    
    * chore: link the Simple custom functions post to the next language docs
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    
    ---------
    
    Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
---
 .htmlvalidateignore                                       | 1 -
 content/blog/2026/09/camel-simple-customfunction/index.md | 8 ++++----
 layouts/_default/_markup/render-codeblock.html            | 6 ++++++
 3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/.htmlvalidateignore b/.htmlvalidateignore
index 3682975b..6e17016b 100644
--- a/.htmlvalidateignore
+++ b/.htmlvalidateignore
@@ -1,4 +1,3 @@
 public/google*.html
 public/camel-k/latest/apis/camel.html
 public/camel-k/latest/apis/crds-html.html
-public/blog/2025/02/connecting-edi-to-the-enterprise-with-camel-and-smooks/index.html
diff --git a/content/blog/2026/09/camel-simple-customfunction/index.md 
b/content/blog/2026/09/camel-simple-customfunction/index.md
index b7bc5018..ed16c4be 100644
--- a/content/blog/2026/09/camel-simple-customfunction/index.md
+++ b/content/blog/2026/09/camel-simple-customfunction/index.md
@@ -884,8 +884,8 @@ ${maskEmail(...)}
 
 **Use Simple wherever it keeps the route clear. Compose what you can. Add Java 
where it actually provides value.**
 
-[1]: https://camel.apache.org/components/languages/simple-language.html 
"Apache Camel - Simple Language"
-[2]: https://camel.apache.org/components/languages/simple-advanced.html 
"Apache Camel - Simple Advanced Features"
-[3]: https://camel.apache.org/manual/camel-jbang-beans.html "Apache Camel - 
Java Beans"
+[1]: /components/next/languages/simple-language.html "Apache Camel - Simple 
Language"
+[2]: /components/next/languages/simple-advanced.html "Apache Camel - Simple 
Advanced Features"
+[3]: /manual/camel-jbang-beans.html "Apache Camel - Java Beans"
 [4]: https://issues.apache.org/jira/browse/CAMEL-24486 "CAMEL-24486"
-[5]: https://camel.apache.org/manual/camel-jbang-running.html#_using_profiles 
"Apache Camel CLI - Using Profiles"
+[5]: /manual/camel-jbang-running.html#_using_profiles "Apache Camel CLI - 
Using Profiles"
diff --git a/layouts/_default/_markup/render-codeblock.html 
b/layouts/_default/_markup/render-codeblock.html
new file mode 100644
index 00000000..6827ae9c
--- /dev/null
+++ b/layouts/_default/_markup/render-codeblock.html
@@ -0,0 +1,6 @@
+{{- /* Chroma's YAML lexer emits a whitespace token at the end of the last 
line of
+       every literal block scalar (`key: |`), which leaves trailing whitespace 
in
+       the highlighted HTML and fails html-validate's no-trailing-whitespace 
rule.
+       Strip trailing whitespace from every line of the highlighted output. */ 
-}}
+{{- $result := transform.HighlightCodeBlock . -}}
+{{- $result.Wrapped | replaceRE `[ \t]+\n` "\n" | safeHTML -}}

Reply via email to