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/08/31 02:26:39 UTC

[pulsar-site] branch fix-docs-generate-clis updated: update

This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch fix-docs-generate-clis
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/fix-docs-generate-clis by this push:
     new 73ff2d3517a update
73ff2d3517a is described below

commit 73ff2d3517acd98989ea7714740497104244572f
Author: Li Li <ur...@apache.org>
AuthorDate: Wed Aug 31 10:26:30 2022 +0800

    update
    
    Signed-off-by: Li Li <ur...@apache.org>
---
 site2/tools/pulsar-admin-doc-gen.sh |  6 +++---
 site2/tools/pulsar-doc-gen.sh       | 30 +++++++++++++++---------------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/site2/tools/pulsar-admin-doc-gen.sh b/site2/tools/pulsar-admin-doc-gen.sh
index a119a3ee787..7dd16566539 100755
--- a/site2/tools/pulsar-admin-doc-gen.sh
+++ b/site2/tools/pulsar-admin-doc-gen.sh
@@ -18,15 +18,15 @@
 # under the License.
 #
 
-set -x -e
-
 ROOT_DIR=$(git rev-parse --show-toplevel)
 WEBSITE=$1
 DOCS_DIR=$WEBSITE/docsify/pulsar-admin
 
+DOC_GEN="$ROOT_DIR/bin/pulsar-admin documents generate"
+
 COMMANDS="broker-stats brokers bookies clusters functions functions-worker namespaces ns-isolation-policy sources sinks topics topicPolicies proxy-stats resourcegroups transactions tenants resource-quotas schemas packages"
 
 for CMD in $COMMANDS
 do
-    $ROOT_DIR/bin/pulsar-admin documents generate $CMD > $DOCS_DIR/$CMD.md
+    $DOC_GEN $CMD > $DOCS_DIR/$CMD.md
 done
diff --git a/site2/tools/pulsar-doc-gen.sh b/site2/tools/pulsar-doc-gen.sh
index bec5c9abfa4..e1e5ceb47e0 100755
--- a/site2/tools/pulsar-doc-gen.sh
+++ b/site2/tools/pulsar-doc-gen.sh
@@ -18,24 +18,24 @@
 # under the License.
 #
 
-set -x -e
-
 ROOT_DIR=$(git rev-parse --show-toplevel)
 WEBSITE=$1
 DOCS_DIR=$WEBSITE/docsify/pulsar
 
-$ROOT_DIR/bin/pulsar broker -g > $DOCS_DIR/broker.md
-$ROOT_DIR/bin/pulsar broker-tool gen-doc > $DOCS_DIR/broker-tool.md
-$ROOT_DIR/bin/pulsar compact-topic -t tmp -g > $DOCS_DIR/compact-topic.md
-$ROOT_DIR/bin/pulsar tokens gen-doc > $DOCS_DIR/tokens.md
-$ROOT_DIR/bin/pulsar proxy -g > $DOCS_DIR/proxy.md
-$ROOT_DIR/bin/pulsar functions-worker -g > $DOCS_DIR/functions-worker.md
-$ROOT_DIR/bin/pulsar standalone -g > $DOCS_DIR/standalone.md
-$ROOT_DIR/bin/pulsar initialize-cluster-metadata -cs cs -uw uw -zk zk -c c -g > $DOCS_DIR/initialize-cluster-metadata.md
-$ROOT_DIR/bin/pulsar delete-cluster-metadata -zk zk -g > $DOCS_DIR/delete-cluster-metadata.md
-$ROOT_DIR/bin/pulsar initialize-transaction-coordinator-metadata -cs cs -c c -g > $DOCS_DIR/initialize-transaction-coordinator-metadata.md
-$ROOT_DIR/bin/pulsar initialize-namespace -cs cs -c c -g demo > $DOCS_DIR/initialize-namespace.md
-$ROOT_DIR/bin/pulsar version -g > $DOCS_DIR/version.md
-$ROOT_DIR/bin/pulsar websocket -g > $DOCS_DIR/websocket.md
+PULSAR="$ROOT_DIR/bin/pulsar"
+
+$PULSAR broker -g > $DOCS_DIR/broker.md
+$PULSAR broker-tool gen-doc > $DOCS_DIR/broker-tool.md
+$PULSAR compact-topic -t tmp -g > $DOCS_DIR/compact-topic.md
+$PULSAR tokens gen-doc > $DOCS_DIR/tokens.md
+$PULSAR proxy -g > $DOCS_DIR/proxy.md
+$PULSAR functions-worker -g > $DOCS_DIR/functions-worker.md
+$PULSAR standalone -g > $DOCS_DIR/standalone.md
+$PULSAR initialize-cluster-metadata -cs cs -uw uw -zk zk -c c -g > $DOCS_DIR/initialize-cluster-metadata.md
+$PULSAR delete-cluster-metadata -zk zk -g > $DOCS_DIR/delete-cluster-metadata.md
+$PULSAR initialize-transaction-coordinator-metadata -cs cs -c c -g > $DOCS_DIR/initialize-transaction-coordinator-metadata.md
+$PULSAR initialize-namespace -cs cs -c c -g demo > $DOCS_DIR/initialize-namespace.md
+$PULSAR version -g > $DOCS_DIR/version.md
+$PULSAR websocket -g > $DOCS_DIR/websocket.md