diff --git a/templates/zerver/base.html b/templates/zerver/base.html index f923f8c660..6063dc4089 100644 --- a/templates/zerver/base.html +++ b/templates/zerver/base.html @@ -37,7 +37,7 @@ {% endblock %} -
+ {% block content %} {% endblock %} diff --git a/templates/zerver/documentation_main.html b/templates/zerver/documentation_main.html index 39de11db86..26024cddf2 100644 --- a/templates/zerver/documentation_main.html +++ b/templates/zerver/documentation_main.html @@ -1,5 +1,6 @@ {% extends "zerver/portico-help.html" %} {% set entrypoint = "help" %} +{% set noscroll = true %} {# Zulip user and API documentation. #} {% block title %} diff --git a/web/src/portico/help.js b/web/src/portico/help.js index 0f415a72dc..e8b2ea7863 100644 --- a/web/src/portico/help.js +++ b/web/src/portico/help.js @@ -125,6 +125,4 @@ $(".markdown").on("click", () => { render_code_sections(); -$("body").addClass("noscroll"); - $(".highlighted")[0]?.scrollIntoView({block: "center"});