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

Add Clojure to website nav #12075

Merged
merged 3 commits into from
Aug 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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