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 05:15:20 UTC
[pulsar-site] branch fix/watch-files-change-script updated (3167c514ac3 -> 83e17d49d59)
This is an automated email from the ASF dual-hosted git repository.
urfree pushed a change to branch fix/watch-files-change-script
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
from 3167c514ac3 add script for watch files change from pulsar repo
add d29c0de1d8b Docs sync done from apache/pulsar(#116495c)
add 6e2bc4ecce4 Merge pull request #91 from apache/fix/watch-files-change-script
new 83e17d49d59 optimize watch script
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
site2/website-next/docs/concepts-architecture-overview.md | 12 ++++++------
site2/website-next/scripts/watch.js | 4 ++++
2 files changed, 10 insertions(+), 6 deletions(-)
[pulsar-site] 01/01: optimize watch script
Posted by ur...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
urfree pushed a commit to branch fix/watch-files-change-script
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
commit 83e17d49d59fde4054586f563be910e4f5fc7ecd
Author: Li Li <ur...@apache.org>
AuthorDate: Tue May 24 13:14:59 2022 +0800
optimize watch script
Signed-off-by: Li Li <ur...@apache.org>
---
site2/website-next/scripts/watch.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/site2/website-next/scripts/watch.js b/site2/website-next/scripts/watch.js
index f8adcffae9a..697a2aa3d7f 100644
--- a/site2/website-next/scripts/watch.js
+++ b/site2/website-next/scripts/watch.js
@@ -41,6 +41,10 @@ watcher
} else if (/\/website\/(.*)/.exec(path)) {
const r = /\/website\/(.*)/.exec(path);
dest += "/" + r[1];
+ } else {
+ console.log(path, "has been changed, do a full sync");
+ execa("sh scripts/sync-docs.sh " + src).stdout.pipe(process.stdout);
+ return;
}
console.log(path, "has been changed, sync to " + dest);
execa("cp -r " + path + " " + dest).stdout.pipe(process.stdout);