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/10/25 02:39:41 UTC

[pulsar-site] branch main updated: fix build error caused by cp swagger dir (#264)

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


The following commit(s) were added to refs/heads/main by this push:
     new 097e8def70f fix build error caused by cp swagger dir (#264)
097e8def70f is described below

commit 097e8def70f81e873afee143a5eb575ddc7bceab
Author: Li Li <ur...@apache.org>
AuthorDate: Tue Oct 25 10:39:35 2022 +0800

    fix build error caused by cp swagger dir (#264)
---
 site2/tools/build-site.sh      | 3 +--
 site2/tools/publish-website.sh | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/site2/tools/build-site.sh b/site2/tools/build-site.sh
index 263f041e091..f8fb3f85e3b 100755
--- a/site2/tools/build-site.sh
+++ b/site2/tools/build-site.sh
@@ -50,7 +50,7 @@ bash scripts/split-version-build.sh $@
 cd "$WEBSITE_DIR"
 
 mkdir -p "$GEN_SITE_DIR"/reference
-cp -r docsify/* "$GEN_SITE_DIR"/reference
+cp -R docsify/* "$GEN_SITE_DIR"/reference
 
 CONTENT_DIR="$GEN_SITE_DIR"/content
 
@@ -59,7 +59,6 @@ mkdir -p "$CONTENT_DIR"
 cp -R "$GEN_SITE_DIR"/reference "$CONTENT_DIR"
 # cp -R "$GEN_SITE_DIR"/api "$CONTENT_DIR"
 cp -R ./build/ "$CONTENT_DIR"
-cp -R "$WEBSITE_DIR"/static/swagger/* "$CONTENT_DIR"/swagger/
 
 # Generate document for release table
 "$TOOLS_DIR"/release-json-gen.sh "$GH_TOKEN" "$WEBSITE_DIR"
diff --git a/site2/tools/publish-website.sh b/site2/tools/publish-website.sh
index c95538d50a7..f18a7a70f89 100755
--- a/site2/tools/publish-website.sh
+++ b/site2/tools/publish-website.sh
@@ -65,7 +65,7 @@ PULSAR_SITE_TMP=/tmp/pulsar-site
       | grep -v $PULSAR_SITE_TMP/content/.htaccess \
       | xargs rm -rf
   fi
-  cp -r $GENERATED_SITE_DIR/content/ $PULSAR_SITE_TMP/content
+  cp -R $GENERATED_SITE_DIR/content/ $PULSAR_SITE_TMP/content
 
   git add -A .
   git diff-index --quiet HEAD || (git commit -m "Updated site at revision $REVISION" && git push -q origin HEAD:$BRANCH_CONTENT)