added build_newsite.sh using mahout retro theme
Project: http://git-wip-us.apache.org/repos/asf/mahout/repo Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/129f1b35 Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/129f1b35 Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/129f1b35 Branch: refs/heads/master Commit: 129f1b35c9de3392c6f271cc8bad08d2ccf27860 Parents: d043db4 Author: vanstee <[email protected]> Authored: Thu Jul 20 14:40:55 2017 -0400 Committer: vanstee <[email protected]> Committed: Thu Jul 20 14:42:57 2017 -0400 ---------------------------------------------------------------------- website/build_newsite.sh | 39 ++++++++++++++++++++++++++++++ website/build_oldsite.sh | 0 website/oldsite/_layouts/default.html | 4 +-- website/oldsite/_layouts/page.html | 4 +-- website/oldsite/_layouts/post.html | 4 +-- 5 files changed, 45 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mahout/blob/129f1b35/website/build_newsite.sh ---------------------------------------------------------------------- diff --git a/website/build_newsite.sh b/website/build_newsite.sh new file mode 100755 index 0000000..c079a2d --- /dev/null +++ b/website/build_newsite.sh @@ -0,0 +1,39 @@ +#/bin/bash + +MHT_GIT_DIR=/data/work/git-repos/mahout/ +TMP_WEB_DIR=/tmp/new/mahout_tmp_web/ +BASEDOCURL="docs/0.13.1-SNAPSHOT" + +THEME=mahout # mahout-retro, mahout, mahout2, mahout3 + +# Checkout master and update to latest code +rm -rf $TMP_WEB_DIR/* +mkdir -p $TMP_WEB_DIR +cd $MHT_GIT_DIR +# git checkout website +# git fetch apache +# git reset --hard apache/master +# + +# Build static content +cd ${MHT_GIT_DIR}/website/front +rake theme:switch name="$THEME" +JEKYLL_ENV=production bundle exec jekyll build +cp -R ${MHT_GIT_DIR}/website/front/_site/* $TMP_WEB_DIR + + +# # Build version specific content +mkdir -p ${TMP_WEB_DIR}/${BASEDOCURL} +rm -rf ${TMP_WEB_DIR}/${BASEDOCURL}/* +cd ${MHT_GIT_DIR}/website/docs +rake theme:switch name="$THEME" +JEKYLL_ENV=production bundle exec jekyll build +cp -R ${MHT_GIT_DIR}/website/docs/_site/* ${TMP_WEB_DIR}/${BASEDOCURL}/ +#cp -R ${MHT_GIT_DIR}/website/docs/_site/* ${TMP_WEB_DIR}/0.13.0/ + +echo "-------------------------------------------------------" +echo To test website open a new with browser window at localhost:4000 +echo "Start Jekyll server in a terminal window..." +echo cd $TMP_WEB_DIR +echo jekyll serve +echo "-------------------------------------------------------" http://git-wip-us.apache.org/repos/asf/mahout/blob/129f1b35/website/build_oldsite.sh ---------------------------------------------------------------------- diff --git a/website/build_oldsite.sh b/website/build_oldsite.sh old mode 100644 new mode 100755 http://git-wip-us.apache.org/repos/asf/mahout/blob/129f1b35/website/oldsite/_layouts/default.html ---------------------------------------------------------------------- diff --git a/website/oldsite/_layouts/default.html b/website/oldsite/_layouts/default.html index ec60279..fb9c05d 100644 --- a/website/oldsite/_layouts/default.html +++ b/website/oldsite/_layouts/default.html @@ -1,6 +1,6 @@ --- theme : - name : mahout3 + name : mahout-retro --- {% include JB/setup %} -{% include themes/mahout3/default.html %} +{% include themes/mahout-retro/default.html %} http://git-wip-us.apache.org/repos/asf/mahout/blob/129f1b35/website/oldsite/_layouts/page.html ---------------------------------------------------------------------- diff --git a/website/oldsite/_layouts/page.html b/website/oldsite/_layouts/page.html index 0e123f9..fafefd2 100644 --- a/website/oldsite/_layouts/page.html +++ b/website/oldsite/_layouts/page.html @@ -1,7 +1,7 @@ --- theme : - name : mahout3 + name : mahout-retro layout: default --- {% include JB/setup %} -{% include themes/mahout3/page.html %} +{% include themes/mahout-retro/page.html %} http://git-wip-us.apache.org/repos/asf/mahout/blob/129f1b35/website/oldsite/_layouts/post.html ---------------------------------------------------------------------- diff --git a/website/oldsite/_layouts/post.html b/website/oldsite/_layouts/post.html index 9b8f584..44dc541 100644 --- a/website/oldsite/_layouts/post.html +++ b/website/oldsite/_layouts/post.html @@ -1,7 +1,7 @@ --- theme : - name : mahout3 + name : mahout-retro layout: default --- {% include JB/setup %} -{% include themes/mahout3/post.html %} +{% include themes/mahout-retro/post.html %}
