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 b1350ff update test
b1350ff is described below
commit b1350ff09f0ce339c81a7d7a54d0979037214ec6
Author: LiLi <[email protected]>
AuthorDate: Fri Mar 4 14:33:42 2022 +0800
update test
Signed-off-by: LiLi <[email protected]>
---
.../workflows/ci-pulsar-website-next-build.yaml | 2 +-
site2/tools/build-site.sh | 44 +++++++++++-----------
2 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/.github/workflows/ci-pulsar-website-next-build.yaml
b/.github/workflows/ci-pulsar-website-next-build.yaml
index ecc87fd..04bed6c 100644
--- a/.github/workflows/ci-pulsar-website-next-build.yaml
+++ b/.github/workflows/ci-pulsar-website-next-build.yaml
@@ -35,7 +35,7 @@ jobs:
- name: checkout
uses: actions/checkout@v2
with:
- fetch-depth: 0
+ fetch-depth: 1
- name: Get changed files
uses: ./.github/actions/changed-files
diff --git a/site2/tools/build-site.sh b/site2/tools/build-site.sh
index cfca2489..7428461 100755
--- a/site2/tools/build-site.sh
+++ b/site2/tools/build-site.sh
@@ -91,17 +91,17 @@ EOF
set -x -e
-export NODE_OPTIONS="--max-old-space-size=16000"
-${ROOT_DIR}/site2/tools/generate-api-docs.sh
+# export NODE_OPTIONS="--max-old-space-size=16000"
+# ${ROOT_DIR}/site2/tools/generate-api-docs.sh
cd ${ROOT_DIR}/site2/$WEBSITE_DIR
-yarn
+# yarn
if [ -n "$NEXT" ]; then
- yarn download
+ # yarn download
- node scripts/replace.js
- node scripts/split-swagger-by-version.js
+ # node scripts/replace.js
+ # node scripts/split-swagger-by-version.js
# Because there are too many versions of the document, the memory overflows
during the full build.
# The split-version-build script is used to build in different versions, and
finally the build results are merged.
bash scripts/split-version-build.sh $2
@@ -113,19 +113,19 @@ else
fi
# Generate document for command line tools.
-${ROOT_DIR}/site2/tools/pulsar-admin-doc-gen.sh $WEBSITE_DIR
-${ROOT_DIR}/site2/tools/pulsar-client-doc-gen.sh $WEBSITE_DIR
-${ROOT_DIR}/site2/tools/pulsar-perf-doc-gen.sh $WEBSITE_DIR
-${ROOT_DIR}/site2/tools/pulsar-doc-gen.sh $WEBSITE_DIR
-cd ${ROOT_DIR}/site2/$WEBSITE_DIR
-
-rm -rf ${ROOT_DIR}/generated-site/content
-mkdir -p ${ROOT_DIR}/generated-site/content
-cp -R ${ROOT_DIR}/generated-site/api ${ROOT_DIR}/generated-site/content
-if [ -n "$NEXT" ]; then
- cp -R ./build/* ${ROOT_DIR}/generated-site/content
-else
- cp -R ./build/pulsar/* ${ROOT_DIR}/generated-site/content
-fi
-cp -R ${ROOT_DIR}/generated-site/tools ${ROOT_DIR}/generated-site/content
-cp -R ${ROOT_DIR}/site2/$WEBSITE_DIR/static/swagger/*
${ROOT_DIR}/generated-site/content/swagger/
+# ${ROOT_DIR}/site2/tools/pulsar-admin-doc-gen.sh $WEBSITE_DIR
+# ${ROOT_DIR}/site2/tools/pulsar-client-doc-gen.sh $WEBSITE_DIR
+# ${ROOT_DIR}/site2/tools/pulsar-perf-doc-gen.sh $WEBSITE_DIR
+# ${ROOT_DIR}/site2/tools/pulsar-doc-gen.sh $WEBSITE_DIR
+# cd ${ROOT_DIR}/site2/$WEBSITE_DIR
+
+# rm -rf ${ROOT_DIR}/generated-site/content
+# mkdir -p ${ROOT_DIR}/generated-site/content
+# cp -R ${ROOT_DIR}/generated-site/api ${ROOT_DIR}/generated-site/content
+# if [ -n "$NEXT" ]; then
+# cp -R ./build/* ${ROOT_DIR}/generated-site/content
+# else
+# cp -R ./build/pulsar/* ${ROOT_DIR}/generated-site/content
+# fi
+# cp -R ${ROOT_DIR}/generated-site/tools ${ROOT_DIR}/generated-site/content
+# cp -R ${ROOT_DIR}/site2/$WEBSITE_DIR/static/swagger/*
${ROOT_DIR}/generated-site/content/swagger/