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

fjy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new c1a75fca3c Docs: fix doc footer (#12943)
c1a75fca3c is described below

commit c1a75fca3cb2bd76d4db5510daa02e4df318fd6c
Author: Vadim Ogievetsky <va...@ogievetsky.com>
AuthorDate: Wed Aug 24 06:47:58 2022 -0700

    Docs: fix doc footer (#12943)
    
    * fix doc footer
    
    * move the logic to the fix-path script
---
 website/script/fix-path.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/website/script/fix-path.js b/website/script/fix-path.js
index f6b8c26222..b2d43c35c7 100644
--- a/website/script/fix-path.js
+++ b/website/script/fix-path.js
@@ -27,6 +27,13 @@ var urlVersion = process.argv[2];
 var druidVersion = process.argv[3];
 
 try {
+  // Change any explict "/docs/latest" links to "/docs/" to be picked up by 
the next replace
+  replace.sync({
+    files: './build/ApacheDruid/docs/**/*.html',
+    from: /"\/docs\/latest"/g,
+    to: `"/docs/"`,
+  });
+
   // Fix doc paths
   replace.sync({
     files: './build/ApacheDruid/docs/**/*.html',


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to