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/06/01 04:25:24 UTC

[pulsar] branch master updated: [feature][website] api generate script (#15872)

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

urfree pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 6c3a32ac6cf [feature][website] api generate script (#15872)
6c3a32ac6cf is described below

commit 6c3a32ac6cfd51eba158c24a5cc297813eb48d56
Author: Li Li <ur...@apache.org>
AuthorDate: Wed Jun 1 12:25:18 2022 +0800

    [feature][website] api generate script (#15872)
---
 site2/website/api.sh | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/site2/website/api.sh b/site2/website/api.sh
new file mode 100755
index 00000000000..00164347628
--- /dev/null
+++ b/site2/website/api.sh
@@ -0,0 +1,30 @@
+#! /bin/sh
+ROOT_DIR=$(git rev-parse --show-toplevel)
+cd $ROOT_DIR/site2/
+mkdir -p .preview
+cd .preview
+
+if [ -d "$ROOT_DIR/site2/.preview/pulsar-site" ]; then
+    cd pulsar-site
+    git checkout .
+    git pull origin main
+else
+    git clone -b main --depth 1 https://github.com/apache/pulsar-site.git
+fi
+
+cd $ROOT_DIR/site2/.preview/pulsar-site
+
+if [ $1"" == "admin" ]; then
+    sh site2/tools/pulsar-admin-md.sh $ROOT_DIR website
+elif [ $1"" == "client" ]; then
+    sh site2/tools/pulsar-client-md.sh $ROOT_DIR website
+elif [ $1"" == "perf" ]; then
+    sh site2/tools/pulsar-perf-md.sh $ROOT_DIR website
+elif [ $1"" == "pulsar" ]; then
+    sh site2/tools/pulsar-md.sh $ROOT_DIR website
+else
+    sh site2/tools/pulsar-perf-md.sh $ROOT_DIR website
+    sh site2/tools/pulsar-client-md.sh $ROOT_DIR website
+    sh site2/tools/pulsar-admin-md.sh $ROOT_DIR website
+    sh site2/tools/pulsar-md.sh $ROOT_DIR website
+fi