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 ea2bf36cc2c fix: reference doc gen scripts does not work (#272)
ea2bf36cc2c is described below

commit ea2bf36cc2c1e8335b923f649aa85beef0d2dfa3
Author: Mercurio <[email protected]>
AuthorDate: Mon Oct 31 16:42:43 2022 +0800

    fix: reference doc gen scripts does not work (#272)
---
 site2/tools/build-site.sh | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/site2/tools/build-site.sh b/site2/tools/build-site.sh
index 56f7bf58405..8c1eed61984 100755
--- a/site2/tools/build-site.sh
+++ b/site2/tools/build-site.sh
@@ -32,6 +32,12 @@ VERSION=next
 export NODE_OPTIONS="--max-old-space-size=16000"
 "$TOOLS_DIR"/generate-api-docs.sh
 
+# Generate document for command line tools.
+"$TOOLS_DIR"/pulsar-admin-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
+"$TOOLS_DIR"/pulsar-client-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
+"$TOOLS_DIR"/pulsar-perf-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
+"$TOOLS_DIR"/pulsar-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
+"$TOOLS_DIR"/pulsar-config-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
 # Generate document for release table.
 "$TOOLS_DIR"/release-json-gen.sh "$GH_TOKEN" "$WEBSITE_DIR"
 
@@ -45,14 +51,6 @@ node scripts/split-swagger-by-version.js
 # 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 $@
 
-# Generate document for command line tools.
-"$TOOLS_DIR"/pulsar-admin-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
-"$TOOLS_DIR"/pulsar-client-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
-"$TOOLS_DIR"/pulsar-perf-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
-"$TOOLS_DIR"/pulsar-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
-"$TOOLS_DIR"/pulsar-config-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
-cd "$WEBSITE_DIR"
-
 CONTENT_DIR="$GEN_SITE_DIR"/content
 rm -rf "$CONTENT_DIR" && mkdir -p "$CONTENT_DIR"
 rsync -a ./build/ "$CONTENT_DIR"

Reply via email to