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/04/06 02:08:09 UTC

[pulsar-site] branch feature/local-preview-by-version-script created (now 7ac40a7f82)

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

urfree pushed a change to branch feature/local-preview-by-version-script
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


      at 7ac40a7f82 feat: local preview script

This branch includes the following new commits:

     new 7ac40a7f82 feat: local preview script

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: feat: local preview script

Posted by ur...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch feature/local-preview-by-version-script
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit 7ac40a7f826f2877c1189a0018a3ffe868af1e38
Author: Li Li <ur...@apache.org>
AuthorDate: Wed Apr 6 10:07:59 2022 +0800

    feat: local preview script
    
    Signed-off-by: Li Li <ur...@apache.org>
---
 site2/website-next/preview.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/site2/website-next/preview.sh b/site2/website-next/preview.sh
new file mode 100755
index 0000000000..36335d3bc4
--- /dev/null
+++ b/site2/website-next/preview.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+BUILD_VERSIONS="[\"current\""
+for version in $@; do
+    BUILD_VERSIONS=$BUILD_VERSIONS", \""$version"\""
+done
+BUILD_VERSIONS=$BUILD_VERSIONS"]"
+
+echo $BUILD_VERSIONS >.build-versions.json
+
+yarn start
\ No newline at end of file