From 6a4671b864ced129444542fbc36c7bb4ac7abc4f Mon Sep 17 00:00:00 2001 From: Aaron Markham Date: Fri, 26 Jan 2018 21:27:33 -0800 Subject: [PATCH] Tutorials index page update (#9535) * changed url references from dmlc to apache/incubator-mxnet * added selector to tutorials page; added fixed tutorials; fixed links * fixed a link * changed gluon intro * updated release version to 1.0.1 on the mainpage and re-arranged news tiles * removed 3 tutorials from gluon category; already in symbol * bigger button; changed category to module * refactored the selector, removed categories, removed 13 tutorials --- docs/_static/js/sidebar.js | 18 +- docs/_static/mxnet-theme/index.html | 23 ++- docs/_static/mxnet-theme/layout.html | 2 +- docs/_static/mxnet-theme/navbar.html | 8 +- docs/_static/mxnet.css | 2 +- docs/faq/index.md | 2 + docs/tutorials/index.md | 260 ++++++++++++++++++++++----- example/README.md | 4 +- 8 files changed, 245 insertions(+), 74 deletions(-) diff --git a/docs/_static/js/sidebar.js b/docs/_static/js/sidebar.js index 31e1450154af..1c27b7e0007b 100644 --- a/docs/_static/js/sidebar.js +++ b/docs/_static/js/sidebar.js @@ -17,7 +17,7 @@ function render_left_helper(toc) { $('.leftsidebar > .sphinxsidebarwrapper').append(lefttoc); addToggle('.leftsidebar'); - + $('.leftsidebar li a').click(function () { $('.leftsidebar li a').css('color', '#337ab7'); $(this).css('color', 'black'); @@ -77,18 +77,18 @@ function render_lefttoc() { /*Render contents inside page*/ function render_righttoc() { var url = window.location.href, indexTrailing = 'index.html'; - + var rightTocTitle = "Page Contents"; $("div.rightsidebar > div.sphinxsidebarwrapper > h3").children().remove(); $("div.rightsidebar > div.sphinxsidebarwrapper > h3").html(rightTocTitle); - + addToggle('.rightsidebar'); - + $('.rightsidebar li a').click(function () { $('.rightsidebar li a').css('color', '#337ab7'); $(this).css('color', 'black'); }); - + if (url.indexOf(indexTrailing) != -1 || isAPI) { $('.rightsidebar').hide(); } @@ -175,7 +175,7 @@ function keepExpand() { break; } } - + //Merge right toc into left toc for API pages since they are quite long if (isAPI) { var rootEntry = currentEntry; @@ -234,6 +234,10 @@ $(document).ready(function () { $('div.sphinxsidebar').hide(); $('.content').css('width', '100%'); } + if (url.indexOf('/tutorials/index.html') != -1) { + $('div.sphinxsidebar').hide(); + $('.content').css('width', '100%'); + } if (showRightToc) { $(window).scroll(function () { scroll_righttoc(); @@ -251,4 +255,4 @@ $(document).ready(function () { if ($('div.sphinxsidebar').css('visibility') == 'hidden') $('.content').css('width', '100%'); return; } -}); \ No newline at end of file +}); diff --git a/docs/_static/mxnet-theme/index.html b/docs/_static/mxnet-theme/index.html index f3f98f7bdce4..9dfb7d6268fa 100644 --- a/docs/_static/mxnet-theme/index.html +++ b/docs/_static/mxnet-theme/index.html @@ -17,27 +17,26 @@ -
-

Apache MXNet 1.0 Released

-

We're excited to announce the release of MXNet 1.0! Check out the release notes for latest updates.

- Learn More +

Apache MXNet 1.0.1 Released

+

We're excited to announce the release of MXNet 1.0.1! Check out the release notes for latest updates.

+ Learn More
-

Introducing - Gluon

-

We’re happy to introduce a new elegant, easy to use, imperative interface for MXNet. +

MXNet Model Server

+

Apache MXNet Model Server (MMS) is a flexible and easy to use tool for serving deep learning models exported from MXNet or the Open Neural Network Exchange (ONNX).

- Learn More + Learn More
-

MXNet Joining Apache

-

We’re excited to announce that MXNet has been accepted to the Apache Incubator. -

- Learn More -
+

Introducing - Gluon

+

We’re happy to introduce a new elegant, easy to use, imperative interface for MXNet. +

+ Learn More +
diff --git a/docs/_static/mxnet-theme/layout.html b/docs/_static/mxnet-theme/layout.html index 08e305c02f6b..653f5d791611 100644 --- a/docs/_static/mxnet-theme/layout.html +++ b/docs/_static/mxnet-theme/layout.html @@ -148,7 +148,7 @@ - +
{%- include "navbar.html" %} diff --git a/docs/_static/mxnet-theme/navbar.html b/docs/_static/mxnet-theme/navbar.html index e5619f17fcaa..bcf87f1ca7f4 100644 --- a/docs/_static/mxnet-theme/navbar.html +++ b/docs/_static/mxnet-theme/navbar.html @@ -6,7 +6,6 @@