Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
portico: Remove redundant sidebar elements from API pages.
Alya Abbott4cf89f2bfe96
diff --git a/api_docs/sidebar_index.md b/api_docs/sidebar_index.mdindex c07a07695e7..67480bbec13 100644--- a/api_docs/sidebar_index.md+++ b/api_docs/sidebar_index.md@@ -1,5 +1,3 @@-## REST API-* [Overview](/api/rest)* [Installation instructions](/api/installation-instructions)* [API keys and zuliprc files](/api/api-keys)diff --git a/templates/zerver/documentation_main.html b/templates/zerver/documentation_main.htmlindex ac8aaa65927..6934cd65a81 100644--- a/templates/zerver/documentation_main.html+++ b/templates/zerver/documentation_main.html@@ -10,10 +10,6 @@<div class="app help terms-page inline-block{% if page_is_api_center %} api-center{% endif %}"><div class="sidebar"><div class="content">- {% if not page_is_policy_center %}- <h1><a href="https://zulip.com" class="no-underline">Zulip homepage</a></h1>- {% endif %}-{{ sidebar_html }}{% if not page_is_policy_center %}diff --git a/zerver/tests/test_urls.py b/zerver/tests/test_urls.pyindex 7d0cd037beb..83e63ac664a 100644--- a/zerver/tests/test_urls.py+++ b/zerver/tests/test_urls.py@@ -185,9 +185,7 @@ class RedirectURLTest(ZulipTestCase):"/api/incoming-webhooks-walkthrough",]:result = self.client_get(redirect.old_url, follow=True)- self.assert_in_success_response(- ["Zulip homepage", "API documentation home"], result- )+ self.assert_in_success_response(["API documentation home"], result)result = self.client_get(redirect.old_url)self.assertEqual(result.status_code, 301)