mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rawkintr...@apache.org
Subject mahout git commit: MAHOUT-1984 Establishing New Build Procedures for Website
Date Wed, 29 Nov 2017 17:01:58 GMT
Repository: mahout
Updated Branches:
  refs/heads/master defbbd20f -> 5f3133c33


MAHOUT-1984 Establishing New Build Procedures for Website


Project: http://git-wip-us.apache.org/repos/asf/mahout/repo
Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/5f3133c3
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/5f3133c3
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/5f3133c3

Branch: refs/heads/master
Commit: 5f3133c337ca89893b0accb2e7edae9a4e756166
Parents: defbbd2
Author: Trevor a.k.a @rawkintrevo <trevor.d.grant@gmail.com>
Authored: Wed Nov 29 11:01:38 2017 -0600
Committer: Trevor a.k.a @rawkintrevo <trevor.d.grant@gmail.com>
Committed: Wed Nov 29 11:01:38 2017 -0600

----------------------------------------------------------------------
 website/build_site.sh | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mahout/blob/5f3133c3/website/build_site.sh
----------------------------------------------------------------------
diff --git a/website/build_site.sh b/website/build_site.sh
new file mode 100644
index 0000000..afa2658
--- /dev/null
+++ b/website/build_site.sh
@@ -0,0 +1,39 @@
+#!/usr/bin/env bash
+
+# Big thanks to Project Aria Tosca Incubating! (rawkintrevo lifted/modded their script Nov
29, 2017))
+
+WORKDIR=/tmp/mahout-site
+rm -rf $WORKDIR
+mkdir -p $WORKDIR/docs/latest
+
+export RUBY_PATH=~/shared/.rvm
+export GEM_HOME=${RUBY_PATH}/gems
+curl -sSL https://get.rvm.io | bash -s -- --path ${RUBY_PATH}
+mkdir -p ${GEM_HOME}/gems
+gem install  --install-dir ${GEM_HOME} bundler
+export PATH=${GEM_HOME}/bin:$PATH
+bundle install --path ${GEM_HOME}
+(cd oldsite && bundle)
+(cd oldsite && bundle exec jekyll build --destination $WORKDIR)
+(cd docs && bundle)
+(cd oldsite && bundle exec jekyll build --destination $WORKDIR/docs/latest)
+
+# Set env for docs
+MAHOUT_VERSION=0.13.0
+DISTFILE=apache-mahout-distribution-$MAHOUT_VERSION.tar.gz
+DISTPATH=http://mirrors.ocf.berkeley.edu/apache/mahout/$MAHOUT_VERSION/$DISTFILE
+
+# Copy API docs into _site
+wget -P $WORKDIR $DISTPATH
+tar -C $WORKDIR -xzf $WORKDIR/$DISTFILE apache-mahout-distribution-$MAHOUT_VERSION/docs
+mkdir -p $WORKDIR/docs/$MAHOUT_VERSION/api
+mv $WORKDIR/apache-mahout-distribution-$MAHOUT_VERSION/docs $WORKDIR/docs/$MAHOUT_VERSION/api
+rm -f $WORKDIR/$DISTFILE
+git checkout asf-site
+git clean -f -d
+git pull origin asf-site
+rm -rf *
+cp -a $WORKDIR/* .
+git add .
+git commit -m "Automatic Site Publish by Buildbot"
+git push origin asf-site
\ No newline at end of file


Mime
View raw message