You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by lx...@apache.org on 2017/08/01 14:36:15 UTC
[incubator-mxnet-test] 27/28: Add url as command line arguments
This is an automated email from the ASF dual-hosted git repository.
lxn2 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet-test.git
commit 5999a7d9735c86bf7bbff8552dd3635d479617a2
Author: Wang <wa...@9801a7a9c287.ant.amazon.com>
AuthorDate: Mon Jul 31 13:15:05 2017 -0700
Add url as command line arguments
---
docs/build_version_doc/build_doc.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/docs/build_version_doc/build_doc.sh b/docs/build_version_doc/build_doc.sh
index aa894fd..f643911 100755
--- a/docs/build_version_doc/build_doc.sh
+++ b/docs/build_version_doc/build_doc.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-web_url="https://github.com/kevinthesun/mxnet.git"
+web_url="$1"
web_folder="VersionedWeb"
local_build="latest"
web_branch="static_web"
@@ -10,6 +10,7 @@ git checkout -b $web_branch "origin/$web_branch"
cd ..
mkdir "$local_build"
+# Fetch tag information
tag_list_file="docs/build_version_doc/tag_list.txt"
cp "$web_folder/tag.txt" "$tag_list_file"
tag_list=()
@@ -27,6 +28,8 @@ if [[ "$curr_tag" != 'master' ]] && [ $curr_tag != $latest_tag ]
then
latest_tag=$curr_tag
fi
+
+# Build new released tag
if [ $latest_tag != ${tag_list[0]} ]
then
echo "Building new tag"
@@ -48,6 +51,7 @@ then
cp -a "$local_build/." "$web_folder"
fi
+# Build latest master
git checkout VersionedDoc
git checkout -- .
git submodule update
@@ -59,6 +63,7 @@ cp -a "docs/_build/html/." "$web_folder/versions/master"
cd "docs/build_version_doc"
python AddVersion.py --file_path "../../$web_folder/versions/master"
+# Update version list for all previous version website
if [ $latest_tag != ${tag_list[0]} ]
then
total=${#tag_list[*]}
--
To stop receiving notification emails like this one, please contact
"commits@mxnet.apache.org" <co...@mxnet.apache.org>.