You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/05/24 03:53:58 UTC

[pulsar] branch master updated: [feature][website] add script to auto watch md files change and auto … (#15721)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new b60c2a58d11 [feature][website] add script to auto watch md files change and auto … (#15721)
b60c2a58d11 is described below

commit b60c2a58d11f20700a937d2084cd712c22e9c8f4
Author: Li Li <ur...@apache.org>
AuthorDate: Tue May 24 11:53:52 2022 +0800

    [feature][website] add script to auto watch md files change and auto … (#15721)
---
 site2/website/start.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/site2/website/start.sh b/site2/website/start.sh
index a5d839e6f79..b8012dd208d 100755
--- a/site2/website/start.sh
+++ b/site2/website/start.sh
@@ -5,6 +5,7 @@ mkdir -p .preview
 cd .preview
 
 if [ -d "$ROOT_DIR/site2/.preview/pulsar-site" ]; then
+    cd pulsar-site
     git checkout .
     git pull origin main
 else
@@ -12,5 +13,6 @@ else
 fi
 
 cd $ROOT_DIR/site2/.preview/pulsar-site/site2/website-next
-sh scripts/sync-docs.sh pulsar
-sh preview.sh $@
\ No newline at end of file
+
+sh scripts/sync-docs.sh $ROOT_DIR/site2/
+node scripts/watch.js $ROOT_DIR/site2 $@