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

Cole-Greer pushed a commit to branch 3.7-dev
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/3.7-dev by this push:
     new 9bd9196441 CTR Fix publish-docs.awk to strip the base-directory prefix 
correctly.
9bd9196441 is described below

commit 9bd9196441a73a64a8c3c90ff7a5d3f21709d613
Author: Cole Greer <[email protected]>
AuthorDate: Tue Sep 15 10:20:33 2026 -0700

    CTR Fix publish-docs.awk to strip the base-directory prefix correctly.
    
    Broadens the deletion rule from (java)?docs to (dotnet|js|java)?docs so 
jsdocs and
    dotnetdocs deletions are handled when diff reports entries at the top level 
of a version directory
    (as happens for a new release, where the awk previously left the prefix in 
the path).
---
 bin/publish-docs.awk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/publish-docs.awk b/bin/publish-docs.awk
index f7582603e3..07143952a9 100644
--- a/bin/publish-docs.awk
+++ b/bin/publish-docs.awk
@@ -22,10 +22,10 @@
   print "U " gensub("^[^/]*/[^/]*/", "", "g", $2)
 }
 
-/^Only in (java)?docs/ {
-  print "D " gensub(/:$/, "", "g", gensub("^[^/]*/[^/]*/", "", "g", $3)) "/" $4
+/^Only in (dotnet|js|java)?docs/ {
+  print "D " gensub(/:$/, "", "g", gensub("^[^/]*/[^/]*/?", "", "g", $3)) "/" 
$4
 }
 
 /^Only in \.\./ {
-  print "A " gensub(/:$/, "", "g", gensub("^[^/]*/[^/]*/[^/]*/", "", "g", $3)) 
"/" $4
+  print "A " gensub(/:$/, "", "g", gensub("^[^/]*/[^/]*/[^/]*/?", "", "g", 
$3)) "/" $4
 }

Reply via email to