You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by cw...@apache.org on 2019/08/27 04:39:18 UTC

[incubator-druid-website-src] branch add-version-release-script created (now 394b5b7)

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

cwylie pushed a change to branch add-version-release-script
in repository https://gitbox.apache.org/repos/asf/incubator-druid-website-src.git.


      at 394b5b7  add scripts to build release documentation

This branch includes the following new commits:

     new 394b5b7  add scripts to build release documentation

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.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[incubator-druid-website-src] 01/01: add scripts to build release documentation

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

cwylie pushed a commit to branch add-version-release-script
in repository https://gitbox.apache.org/repos/asf/incubator-druid-website-src.git

commit 394b5b7f8b983b7270ea08404ce163282d9945b1
Author: Clint Wylie <cw...@apache.org>
AuthorDate: Mon Aug 26 18:26:36 2019 -0700

    add scripts to build release documentation
---
 .gitignore   |  1 +
 _config.yml  |  1 +
 package.json |  3 ++-
 release.sh   | 44 ++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 48 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index fab746f..9073205 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ Gemfile.lock
 node_modules
 private
 css/
+_staging
\ No newline at end of file
diff --git a/_config.yml b/_config.yml
index 87bd10e..39f7ec2 100644
--- a/_config.yml
+++ b/_config.yml
@@ -16,6 +16,7 @@ exclude:
   - package-lock.json
   - scss
   - private
+  - release.sh
 
 highlighter: pygments
 
diff --git a/package.json b/package.json
index f762c90..0ae0182 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,8 @@
     "start": "bundle exec jekyll serve --future --port 4001 --safe",
     "watch": "gulp watch",
     "compile": "gulp all; bundle exec jekyll build",
-    "build": "npm run compile && rm -r ../incubator-druid-website/* && cp -r ./_site/* ../incubator-druid-website/"
+    "build": "npm run compile && rm -r ../incubator-druid-website/* && cp -r ./_site/* ../incubator-druid-website/",
+    "build-release": "./release.sh"
   },
   "dependencies": {
     "broken-link-checker": "0.7.8",
diff --git a/release.sh b/release.sh
new file mode 100755
index 0000000..97ced8a
--- /dev/null
+++ b/release.sh
@@ -0,0 +1,44 @@
+#!/bin/bash -eu
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+if [ "$#" -ne 1 ]; then
+  echo "Illegal number of parameters, should be just one: the version";
+  exit 1;
+fi
+echo "Building to docs for '$1'..."
+
+baseDir=$(pwd)
+
+pushd $baseDir
+rm -rf _staging/
+mkdir -p _staging/
+cd _staging/
+git clone git@github.com:apache/incubator-druid.git
+cd incubator-druid/
+git checkout $1
+mvn -Pwebsite-docs -pl website compile -Dwebsite.src=$baseDir
+popd
+
+git add .
+
+echo "Building Website..."
+npm run build
+pushd $(pwd)
+cd ../incubator-druid-website/
+git add .
+popd


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org