You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by zh...@apache.org on 2018/07/27 10:46:33 UTC

[incubator-servicecomb-website] 01/02: add 4 script for update docs source , release and deploy

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

zhengyangyong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git

commit 5549ca373ba3c336545a3d8740370ece3b3ea207
Author: DeanLee <li...@huawei.com>
AuthorDate: Fri Jul 27 16:30:26 2018 +0800

    add 4 script for update docs source ,release and deploy
---
 script/bootstrap    | 14 ++++++++++++++
 script/deploy       | 10 ++++++++++
 script/release      |  7 +++++++
 script/start-server |  4 ++++
 4 files changed, 35 insertions(+)

diff --git a/script/bootstrap b/script/bootstrap
new file mode 100755
index 0000000..e355715
--- /dev/null
+++ b/script/bootstrap
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+#nstall Ruby and Gem
+
+#Install Jekyll and Bundler
+sudo gem install jekyll bundler
+
+git clone https://github.com/apache/incubator-servicecomb-website.git
+
+#Install the gems with bundle
+sudo bundle install
+
+#Run the following command to install GitBook
+npm install gitbook-cli -g
diff --git a/script/deploy b/script/deploy
new file mode 100755
index 0000000..990e1b7
--- /dev/null
+++ b/script/deploy
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+
+git clone https://github.com/apache/incubator-servicecomb-docs.git
+
+gitbook build incubator-servicecomb-docs/java-chassis-reference users/servicecomb-java-chassis-doc
+ 
+bundle exec jekyll build --config _config.yml
+
+bundle exec jekyll server --port 4000 --host 
diff --git a/script/release b/script/release
new file mode 100755
index 0000000..916ae00
--- /dev/null
+++ b/script/release
@@ -0,0 +1,7 @@
+#!/bin/sh
+#push a release to branch asf-site
+
+
+bundle update
+
+git push origin asf-site
diff --git a/script/start-server b/script/start-server
new file mode 100755
index 0000000..410d447
--- /dev/null
+++ b/script/start-server
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+#Start web browser to access http://localhost:4000
+sudo bundle exec jekyll server