diff --git a/static/js/portico/help.js b/static/js/portico/help.js index bbbaa76165..bbe7cefbc7 100644 --- a/static/js/portico/help.js +++ b/static/js/portico/help.js @@ -100,17 +100,6 @@ const update_page = function (html_map, path) { new SimpleBar($(".sidebar")[0]); -$(".sidebar.slide h2").on("click", (e) => { - const $next = $(e.target).next(); - - if ($next.is("ul")) { - // Close other article's headings first - $(".sidebar ul").not($next).hide(); - // Toggle the heading - $next.slideToggle("fast", "swing"); - } -}); - $(".sidebar a").on("click", function (e) { const path = $(this).attr("href"); const path_dir = path.split("/")[1]; @@ -173,3 +162,5 @@ window.addEventListener("popstate", () => { }); $("body").addClass("noscroll"); + +$(".highlighted")[0].scrollIntoView({block: "center"}); diff --git a/templates/zerver/documentation_main.html b/templates/zerver/documentation_main.html index fcf1f2e056..3efab133da 100644 --- a/templates/zerver/documentation_main.html +++ b/templates/zerver/documentation_main.html @@ -5,7 +5,7 @@ {% block portico_content %}
-