You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by ya...@apache.org on 2014/08/16 01:05:36 UTC
[2/2] git commit: SAMZA-385: fix local-site-test does not overwrite
SVN directory.
SAMZA-385: fix local-site-test does not overwrite SVN directory.
Project: http://git-wip-us.apache.org/repos/asf/incubator-samza/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-samza/commit/41d17568
Tree: http://git-wip-us.apache.org/repos/asf/incubator-samza/tree/41d17568
Diff: http://git-wip-us.apache.org/repos/asf/incubator-samza/diff/41d17568
Branch: refs/heads/master
Commit: 41d17568d3bec61d85d1ed51ae5fee068aa0b087
Parents: 3b15e54
Author: Yan Fang <ya...@gmail.com>
Authored: Fri Aug 15 16:03:12 2014 -0700
Committer: Yan Fang <ya...@gmail.com>
Committed: Fri Aug 15 16:05:00 2014 -0700
----------------------------------------------------------------------
docs/README.md | 3 +++
docs/_docs/local-site-test.sh | 10 +++++-----
2 files changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-samza/blob/41d17568/docs/README.md
----------------------------------------------------------------------
diff --git a/docs/README.md b/docs/README.md
index 9b3b889..e31b2eb 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -40,6 +40,9 @@ To test the site,
_docs/local-site-test.sh
+ * keep in mind that the switch-version buttons in other versions link to samza.incubator.apache.org/,
+ not the localhost:4000. That is because they are not updated by your branch and are using the value in SVN.
+
## Versioning
The "learn" and "img" sections are versioned. To add a new version, change the version number in _config.yml. All links in pages should use
http://git-wip-us.apache.org/repos/asf/incubator-samza/blob/41d17568/docs/_docs/local-site-test.sh
----------------------------------------------------------------------
diff --git a/docs/_docs/local-site-test.sh b/docs/_docs/local-site-test.sh
index c9cffb6..b64ea2c 100755
--- a/docs/_docs/local-site-test.sh
+++ b/docs/_docs/local-site-test.sh
@@ -22,13 +22,13 @@
DIR=$(dirname $0)/..
cd $DIR
+# replace version number
+echo "replacing version number..."
+_docs/replace-versioned.sh
+
echo "downloading SVN..."
SVN_TMP=`mktemp -d /tmp/samza-svn.XXXX`
svn co https://svn.apache.org/repos/asf/incubator/samza/ $SVN_TMP
cp -r _site/* $SVN_TMP/site/
cp -r $SVN_TMP/site/* _site
-rm -rf $SVN_TMP
-
-# replace version number
-echo "replacing version number..."
-_docs/replace-versioned.sh
\ No newline at end of file
+rm -rf $SVN_TMP
\ No newline at end of file