piiswrong closed pull request #9757: Fix active tab on website URL: https://github.com/apache/incubator-mxnet/pull/9757
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/docs/_static/js/navbar.js b/docs/_static/js/navbar.js index ee011bd598..d7635af888 100644 --- a/docs/_static/js/navbar.js +++ b/docs/_static/js/navbar.js @@ -1,6 +1,6 @@ var searchBox = $("#search-input-wrap"); -var TITLE = ['/get_started/', '/tutorials/', '/gluon/' , '/api/', '/community/contribute.html', ]; -var DOC_TITLE = ['/faq/', '/architecture/', '/model_zoo/']; +var TITLE = ['/install/', '/gluon/' , '/api/', '/docs/', '/github/', '/community/', ]; +var DOC_TITLE = ['/faq/', '/tutorials/', '/architecture/', '/model_zoo/']; var APISubmenu, versionSubmenu, docSubmenu; $("#burgerMenu").children().each(function () { if($(this).children().first().html() == 'API') APISubmenu = $(this).clone(); @@ -72,7 +72,7 @@ function showTab() { } for(var i = 0; i < DOC_TITLE.length; ++i) { if(url.indexOf(DOC_TITLE[i]) != -1) { - var tab = $($('#main-nav').children().eq(4)); + var tab = $($('#main-nav').children().eq(3)); if(!tab.is('a')) tab = tab.find('a').first(); tab.css('border-bottom', '3px solid'); } ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services