Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Add Clojure to website nav (#12075)
Browse files Browse the repository at this point in the history
* adding clojure to API navigation

* adding clojure to the sidebar

* switched order
  • Loading branch information
aaronmarkham authored and marcoabreu committed Aug 10, 2018
1 parent 787cd08 commit 7e99621
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/_static/js/sidebar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*Preprocess*/
var LANG = ['python', 'scala', 'r', 'julia', 'c++', 'perl'];
var LANG = ['python', 'c++', 'clojure', 'julia', 'perl', 'r', 'scala'];
var TITLE_WITH_LANG = ['/get_started/', '/tutorials/', '/faq/', '/architecture/', '/community/'];
for(var i = 0; i < LANG.length; ++i) {
TITLE_WITH_LANG.push('/api/' + LANG[i] + '/');
Expand Down
7 changes: 4 additions & 3 deletions docs/_static/mxnet-theme/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ <h1 id="logo-wrap">
<ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
<li><a class="main-nav-link" href="{{url_root}}api/python/index.html">Python</a></li>
<li><a class="main-nav-link" href="{{url_root}}api/c++/index.html">C++</a></li>
<li><a class="main-nav-link" href="{{url_root}}api/scala/index.html">Scala</a></li>
<li><a class="main-nav-link" href="{{url_root}}api/clojure/index.html">Clojure</a></li>
<li><a class="main-nav-link" href="{{url_root}}api/julia/index.html">Julia</a></li>
<li><a class="main-nav-link" href="{{url_root}}api/perl/index.html">Perl</a></li>
<li><a class="main-nav-link" href="{{url_root}}api/r/index.html">R</a></li>
<li><a class="main-nav-link" href="{{url_root}}api/scala/index.html">Scala</a></li>
</ul>
</span>

Expand All @@ -50,7 +51,7 @@ <h1 id="logo-wrap">
</ul>
</span>
</nav>

<script> function getRootPath(){ return "{{url_root}}" } </script>
<div class="burgerIcon dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"></a>
Expand All @@ -71,7 +72,7 @@ <h1 id="logo-wrap">
<li class="dropdown-submenu">
<a href="#" tabindex="-1" role="button" aria-haspopup="true" class="dropdown-toggle burger-link" data-toggle="dropdown">{{name}}</a>
<ul class="dropdown-menu">
{% for lang in ['Python', 'Scala', 'R', 'Julia', 'C++', 'Perl'] %}
{% for lang in ['Python', 'C++', 'Clojure', 'Julia', 'Perl', 'R', 'Scala'] %}
<li><a tabindex="-1" href="{{url_root}}{{name.lower()|replace(" ", "_")}}/{{lang.lower()}}/index.html">{{lang}}</a>
</li>
{% endfor %}
Expand Down

0 comments on commit 7e99621

Please sign in to comment.