mirror of https://github.com/zulip/zulip.git
/api/: Fix some headings.
This commit is contained in:
parent
d2e55fa5c8
commit
a8c735e1d2
|
@ -1,4 +1,4 @@
|
||||||
## API
|
## REST API
|
||||||
|
|
||||||
* [Installation instructions](/api-new/installation-instructions)
|
* [Installation instructions](/api-new/installation-instructions)
|
||||||
* [API keys](/api-new/api-keys)
|
* [API keys](/api-new/api-keys)
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
{% if page_is_help_center %}
|
{% if page_is_help_center %}
|
||||||
<div class="light"> <pipe>|</pipe> User Documentation</div>
|
<div class="light"> <pipe>|</pipe> User Documentation</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if page_is_api_center %}
|
||||||
|
<div class="light"> <pipe>|</pipe> API Documentation</div>
|
||||||
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -70,7 +70,10 @@ class MarkdownDirectoryView(ApiURLView):
|
||||||
|
|
||||||
# For disabling the "Back to home" on the homepage
|
# For disabling the "Back to home" on the homepage
|
||||||
context["not_index_page"] = not path.endswith("/index.md")
|
context["not_index_page"] = not path.endswith("/index.md")
|
||||||
|
if self.template_name == "zerver/help/main.html":
|
||||||
context["page_is_help_center"] = True
|
context["page_is_help_center"] = True
|
||||||
|
else:
|
||||||
|
context["page_is_api_center"] = True
|
||||||
# An "article" might require the api_uri_context to be rendered
|
# An "article" might require the api_uri_context to be rendered
|
||||||
api_uri_context = {} # type: Dict[str, Any]
|
api_uri_context = {} # type: Dict[str, Any]
|
||||||
add_api_uri_context(api_uri_context, self.request)
|
add_api_uri_context(api_uri_context, self.request)
|
||||||
|
|
Loading…
Reference in New Issue