diff --git a/templates/zerver/api/sidebar.md b/templates/zerver/api/sidebar.md index 7fce72812e..d0f329a1e6 100644 --- a/templates/zerver/api/sidebar.md +++ b/templates/zerver/api/sidebar.md @@ -1,4 +1,4 @@ -## API +## REST API * [Installation instructions](/api-new/installation-instructions) * [API keys](/api-new/api-keys) diff --git a/templates/zerver/portico-header.html b/templates/zerver/portico-header.html index 6f5ec09e2f..f5cf967a26 100644 --- a/templates/zerver/portico-header.html +++ b/templates/zerver/portico-header.html @@ -16,6 +16,9 @@ {% if page_is_help_center %}
| User Documentation
{% endif %} + {% if page_is_api_center %} +
| API Documentation
+ {% endif %} {% endif %} diff --git a/zerver/views/integrations.py b/zerver/views/integrations.py index 7e2b5a2658..54fdcff3be 100644 --- a/zerver/views/integrations.py +++ b/zerver/views/integrations.py @@ -70,7 +70,10 @@ class MarkdownDirectoryView(ApiURLView): # For disabling the "Back to home" on the homepage context["not_index_page"] = not path.endswith("/index.md") - context["page_is_help_center"] = True + if self.template_name == "zerver/help/main.html": + context["page_is_help_center"] = True + else: + context["page_is_api_center"] = True # An "article" might require the api_uri_context to be rendered api_uri_context = {} # type: Dict[str, Any] add_api_uri_context(api_uri_context, self.request)