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:35:53 UTC

[incubator-mxnet-test] 05/28: More fix

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 934c1b6e2420d0255c3a5b815e80468af4e8e805
Author: Wang <wa...@9801a7a9c287.ant.amazon.com>
AuthorDate: Wed Jul 26 15:10:06 2017 -0700

    More fix
---
 docs/_static/js/navbar.js           |  6 +++++-
 docs/build_version_doc/build_doc.sh | 10 ++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/docs/_static/js/navbar.js b/docs/_static/js/navbar.js
index ac8a8ea..0ab02a5 100644
--- a/docs/_static/js/navbar.js
+++ b/docs/_static/js/navbar.js
@@ -3,6 +3,7 @@ var TITLE = ['/get_started/', '/tutorials/', '/how_to/', '/api/', '/architecture
 var APIsubMenu;
 $("#burgerMenu").children().each(function () {
     if($(this).children().first().html() == 'API') APIsubMenu = $(this).clone()
+    if($(this).children().first().html().startsWith('versions')) VersionsubMenu = $(this).clone()
 });
 
 function navbar() {
@@ -38,9 +39,12 @@ function navbar() {
     }
     $("#plusMenu").empty();
     for (var i = 0; i < plusMenuList.length; ++i) {
-        if(plusMenuList[i].html().length > 20) {
+        if(plusMenuList[i].attr('id') == 'dropdown-menu-position-anchor') {
             $("#plusMenu").append(APIsubMenu);
         }
+        else if(plusMenuList[i].attr('id') == 'dropdown-menu-position-anchor-version') {
+            $("#plusMenu").append(VersionsubMenu);
+        }
         else {
             $("#plusMenu").append("<li></li>");
             plusMenuList[i].removeClass("main-nav-link");
diff --git a/docs/build_version_doc/build_doc.sh b/docs/build_version_doc/build_doc.sh
index 86d71dc..62070ac 100755
--- a/docs/build_version_doc/build_doc.sh
+++ b/docs/build_version_doc/build_doc.sh
@@ -56,3 +56,13 @@ fi
 
 rm -rf "$web_folder/versions/master"
 cp -R master "$web_folder/versions/master"
+
+if [ $latest_tag != ${tag_list[0]} ]
+then
+    total=${#tag_list[*]}
+    for (( i=0; i<=$(( $total -1 )); i++ ))
+    do
+        python AddVersion.py --file_path "$web_folder/versions/${tag_list[$i]}" \
+                             --current_version "${tag_list[$i]}"
+    done
+fi
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
"commits@mxnet.apache.org" <co...@mxnet.apache.org>.