This is an automated email from the ASF dual-hosted git repository.
nswamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new b1d65e9 Fix faq breadcrumb (#8094)
b1d65e9 is described below
commit b1d65e91a9888e4b7f3d863fc5179bacfa1d692c
Author: thinksanky <[email protected]>
AuthorDate: Fri Sep 29 09:58:40 2017 -0700
Fix faq breadcrumb (#8094)
* Fixed broken URL by renaming FAQ folder name to faq
* fixed broken links for HowTo Documents and FAQ breadcrumb
---
docs/_static/js/page.js | 8 ++++++--
docs/index.md | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/docs/_static/js/page.js b/docs/_static/js/page.js
index 08afea1..24fa215 100644
--- a/docs/_static/js/page.js
+++ b/docs/_static/js/page.js
@@ -28,8 +28,12 @@ for (var i = 1; i < pathArr.length; ++i) {
if (pathArr[i].indexOf('#') != -1) pathArr[i] = pathArr[i].substring(0,
pathArr[i].indexOf('#'));
lastUrl += '/' + pathArr[i];
if (pathArr[i].endsWith('.html')) pathArr[i] = pathArr[i].substring(0,
pathArr[i].length - 5);
- if (i == pathArr.length - 1 || pathArr[i + 1].length == 0 ||
- pathArr[i + 1] == 'index.html') urlTracker += "<li>" +
pathArr[i].replace(/_/g, ' ') + "</li>";
+ if (i == pathArr.length - 1 || pathArr[i + 1].length == 0 || pathArr[i +
1] == 'index.html') {
+ if ( pathArr[i] == 'faq' ){
+ pathArr[i] = "FAQ";
+ }
+ urlTracker += "<li>" + pathArr[i].replace(/_/g, ' ') + "</li>";
+ }
else {
// Check whether current folder has index.html.
// If it doesn't, disable the link.
diff --git a/docs/index.md b/docs/index.md
index 582bd06..a1591c2 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -8,7 +8,7 @@ These are used to generate the indexes for search functionality.
- [C++ Documents](api/c++/index.md)
- [Scala Documents](api/scala/index.md)
- [Perl Documents](api/perl/index.md)
-- [HowTo Documents](how_to/index.md)
+- [HowTo Documents](faq/index.md)
- [Get Started Documents](get_started/index.md)
- [System Documents](architecture/index.md)
- [Tutorials](tutorials/index.md)
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].