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/03/04 07:22:16 UTC
[pulsar-site] 01/02: update
This is an automated email from the ASF dual-hosted git repository.
urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
commit 90bdbf75b5dde7ea1b088bac666f73223d52b49c
Author: LiLi <ur...@apache.org>
AuthorDate: Fri Mar 4 15:20:13 2022 +0800
update
Signed-off-by: LiLi <ur...@apache.org>
---
site2/tools/build-site.sh | 6 +++++-
site2/website-next/package.json | 4 ++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/site2/tools/build-site.sh b/site2/tools/build-site.sh
index ad184bb..de6ae29 100755
--- a/site2/tools/build-site.sh
+++ b/site2/tools/build-site.sh
@@ -98,7 +98,11 @@ cd ${ROOT_DIR}/site2/$WEBSITE_DIR
yarn
if [ -n "$NEXT" ]; then
- yarn download
+ CURRENT_HOUR=$(date +%H)
+ if [[ "$CROWDIN_UPLOAD" == "1" || $CURRENT_HOUR -lt 6 ]]; then
+ yarn run crowdin-upload
+ fi
+ yarn crowdin-download
node scripts/replace.js
node scripts/split-swagger-by-version.js
diff --git a/site2/website-next/package.json b/site2/website-next/package.json
index 536cc49..7e0ec9c 100644
--- a/site2/website-next/package.json
+++ b/site2/website-next/package.json
@@ -14,8 +14,8 @@
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"crowdin": "crowdin",
- "upload": "crowdin upload",
- "download": "crowdin download"
+ "crowdin-upload": "crowdin upload",
+ "crowdin-download": "crowdin download"
},
"dependencies": {
"@crowdin/cli": "3.7.4",