diff --git a/website/_includes/footer.html b/website/_includes/footer.html index c1a373329..20aa9f52c 100644 --- a/website/_includes/footer.html +++ b/website/_includes/footer.html @@ -27,25 +27,6 @@ if (!doNotTrack) { }; window.addEventListener("hashchange", shiftWindow); - var highlightCurrentSidebarNav = function() { - var href = location.pathname; - var item = $('#sidebar-nav [href$="' + href + '"]'); - if (item) { - var li = item.parent(); - li.addClass("active"); - - if (li.parent() && li.parent().is("ul")) { - do { - var ul = li.parent(); - if (ul.hasClass("collapse")) { - ul.collapse("show"); - } - li = ul.parent(); - } while (li && li.is("li")); - } - } - }; - $(document).ready(function() { // Scroll to anchor of location hash, adjusted for fixed navbar. window.setTimeout(function() { @@ -65,8 +46,5 @@ if (!doNotTrack) { toggle.removeClass("dropup"); } }); - - // Highlight the current page on the sidebar nav. - highlightCurrentSidebarNav(); }); diff --git a/website/_layouts/docs.html b/website/_layouts/docs.html index d45a781a4..5b95dc071 100644 --- a/website/_layouts/docs.html +++ b/website/_layouts/docs.html @@ -20,15 +20,20 @@ categories: {% comment %}If all pages in the subcategory are excluded don't show it.{% endcomment %} {% if sorted_pages.size > 0 %} {% if subcategory.name != "" %} - {% assign ac = "aria-controls" %} {% assign cid = category | remove: " " | downcase %} {% assign sid = subcategory.name | remove: " " | downcase %}
  • - -