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 01:13:17 UTC

[pulsar-site] branch main updated: Fix the bug that the redirection file is not copied when building (#263)

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 43150430b80 Fix the bug that the redirection file is not copied when building (#263)
43150430b80 is described below

commit 43150430b806d1f377761238009916a937dfa103
Author: Li Li <ur...@apache.org>
AuthorDate: Tue Oct 25 09:13:11 2022 +0800

    Fix the bug that the redirection file is not copied when building (#263)
---
 site2/tools/build-site.sh                         | 2 +-
 site2/tools/publish-website.sh                    | 2 +-
 site2/website-next/scripts/split-version-build.sh | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/site2/tools/build-site.sh b/site2/tools/build-site.sh
index e35f3a2c1f4..263f041e091 100755
--- a/site2/tools/build-site.sh
+++ b/site2/tools/build-site.sh
@@ -58,7 +58,7 @@ rm -rf "$CONTENT_DIR"
 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 ./build/ "$CONTENT_DIR"
 cp -R "$WEBSITE_DIR"/static/swagger/* "$CONTENT_DIR"/swagger/
 
 # Generate document for release table
diff --git a/site2/tools/publish-website.sh b/site2/tools/publish-website.sh
index f1052103881..c95538d50a7 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)
diff --git a/site2/website-next/scripts/split-version-build.sh b/site2/website-next/scripts/split-version-build.sh
index 6dba5cc4efc..8b5ed1610a2 100755
--- a/site2/website-next/scripts/split-version-build.sh
+++ b/site2/website-next/scripts/split-version-build.sh
@@ -76,5 +76,6 @@ done <scripts/.versions
 
 cp -r build-assets/* build/assets/
 rm -rf build-assets
+cp static/.htaccess build/
 
 echo $BUILD_ALL_VERSION >scripts/.build