v***@apache.org
2017-07-20 18:55:49 UTC
Repository: mahout
Updated Branches:
refs/heads/master 129f1b35c -> 9595d30ad (forced update)
NOJIRA : small website update
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/9595d30a
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/9595d30a
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/9595d30a
Branch: refs/heads/master
Commit: 9595d30ad1db5d77920d887c8676082c1375bce5
Parents: d043db4
Author: vanstee <***@apache.org>
Authored: Thu Jul 20 14:40:55 2017 -0400
Committer: vanstee <***@apache.org>
Committed: Thu Jul 20 14:55:11 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/9595d30a/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/9595d30a/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/9595d30a/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/9595d30a/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/9595d30a/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 %}
Updated Branches:
refs/heads/master 129f1b35c -> 9595d30ad (forced update)
NOJIRA : small website update
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/9595d30a
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/9595d30a
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/9595d30a
Branch: refs/heads/master
Commit: 9595d30ad1db5d77920d887c8676082c1375bce5
Parents: d043db4
Author: vanstee <***@apache.org>
Authored: Thu Jul 20 14:40:55 2017 -0400
Committer: vanstee <***@apache.org>
Committed: Thu Jul 20 14:55:11 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/9595d30a/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/9595d30a/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/9595d30a/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/9595d30a/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/9595d30a/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 %}