Update build_site.sh to not commit entire website
@@ -12,12 +12,9 @@ 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
-(cd website/oldsite && bundle install --path ${GEM_HOME})
-(cd website/oldsite && bundle)
-(cd website/oldsite && bundle exec jekyll build --destination $WORKDIR)
-(cd website/docs && bundle install --path ${GEM_HOME})
-(cd website/docs && bundle)
-(cd website/docs && bundle exec jekyll build --destination $WORKDIR/docs/latest)
+(cd website && bundle install --path ${GEM_HOME})
+(cd website && bundle)
+(cd website && bundle exec jekyll build --destination $WORKDIR)
# Set env for docs
MAHOUT_VERSION=0.13.0
@@ -27,7 +24,7 @@ if [ ! -d "$WORKDIR/docs/$MAHOUT_VERSION/api" ]; then
DISTPATH= https://dist.apache.org/repos/dist/release/mahout/$MAHOUT_VERSION/$DISTFILE
# Copy API docs into _site
- wget -q -P $WORKDIR $DISTPATH
+ wget -qP $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
