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:27:34 UTC
[pulsar-site] branch fix-build-error2 created (now 8f3c4f071b0)
This is an automated email from the ASF dual-hosted git repository.
urfree pushed a change to branch fix-build-error2
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
at 8f3c4f071b0 fix build error caused by cp swagger dir
This branch includes the following new commits:
new 8f3c4f071b0 fix build error caused by cp swagger dir
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.
[pulsar-site] 01/01: fix build error caused by cp swagger dir
Posted by ur...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
urfree pushed a commit to branch fix-build-error2
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
commit 8f3c4f071b01c42907dd86add1bd3f73aab33543
Author: Li Li <ur...@apache.org>
AuthorDate: Tue Oct 25 10:27:23 2022 +0800
fix build error caused by cp swagger dir
Signed-off-by: Li Li <ur...@apache.org>
---
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)