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

lhotari pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit b53b66842ab56f2aa58057590a0f75bd49b1488d
Author: Lari Hotari <[email protected]>
AuthorDate: Fri Jun 12 00:50:55 2026 +0300

    Filter stray log lines out of generated reference docs in doc sync
    
    The pulsar CLI doc generators capture command stdout verbatim, so
    log4j output (e.g. a BookKeeper INFO line in
    initialize-cluster-metadata.md) leaked into the generated markdown.
    Add a post-processing step to the sync-content action that strips
    such log lines from static/reference before the docs are committed
    and pushed, and remove the existing leaked line.
---
 .github/actions/sync-content/action.yml                     | 10 +++++++++-
 static/reference/next/pulsar/initialize-cluster-metadata.md |  1 -
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/.github/actions/sync-content/action.yml 
b/.github/actions/sync-content/action.yml
index 0987917ee18..5707cdfb323 100644
--- a/.github/actions/sync-content/action.yml
+++ b/.github/actions/sync-content/action.yml
@@ -54,5 +54,13 @@ runs:
         poetry install
         poetry run bin/reference-doc-generator.py 
--master-path=$GITHUB_WORKSPACE/tmp/pulsar
         poetry run bin/rest-apidoc-generator.py 
--master-path=$GITHUB_WORKSPACE/tmp/pulsar
-        poetry run bin/site-updater.py 
--master-path=$GITHUB_WORKSPACE/tmp/pulsar
+      shell: bash
+    - name: Remove stray log lines from generated reference docs
+      run: |
+        find static/reference -name '*.md' -print0 | xargs -0 sed -i -E \
+          
'/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}[+-][0-9]{4} 
\[[^]]*\] +(INFO|WARN|ERROR|DEBUG|TRACE|FATAL) /d'
+      shell: bash
+    - name: Commit and push updated docs
+      working-directory: tools/pytools
+      run: poetry run bin/site-updater.py 
--master-path=$GITHUB_WORKSPACE/tmp/pulsar
       shell: bash
diff --git a/static/reference/next/pulsar/initialize-cluster-metadata.md 
b/static/reference/next/pulsar/initialize-cluster-metadata.md
index b7e24d0a6b1..4f099799d15 100644
--- a/static/reference/next/pulsar/initialize-cluster-metadata.md
+++ b/static/reference/next/pulsar/initialize-cluster-metadata.md
@@ -1,4 +1,3 @@
-2026-06-11T01:53:21,893+0000 [main] INFO  
org.apache.bookkeeper.meta.MetadataDrivers - BookKeeper metadata driver manager 
initialized {}
 # initialize-cluster-metadata
 
 

Reply via email to