mirror of https://github.com/zulip/zulip.git
help: Make API context available to sidebars.
I am not a fan of this API (where we need to pass context into `render_markdown_path` directly), but it seems more robust to pass this in directly.
This commit is contained in:
parent
98889608a2
commit
57ca19392e
|
@ -6,7 +6,7 @@
|
|||
<div class="app help api-docs terms-page inline-block">
|
||||
<div class="sidebar">
|
||||
<h1 class="no-arrow"><a href="/api/" class="no-underline">Index</a></h1>
|
||||
{{ render_markdown_path("zerver/api/sidebar.md") }}
|
||||
{{ render_markdown_path("zerver/api/sidebar.md", api_uri_context) }}
|
||||
<h1 class="home-link"><a href="/" class="no-underline">Back to Home</a></h1>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<div class="app help terms-page inline-block">
|
||||
<div class="sidebar slide">
|
||||
<h1><a href="/help/" class="no-underline">Index</a></h1>
|
||||
{{ render_markdown_path("zerver/help/include/sidebar.md") }}
|
||||
{{ render_markdown_path("zerver/help/include/sidebar.md", api_uri_context) }}
|
||||
<h1 class="home-link"><a href="/" class="no-underline">Back to Home</a></h1>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue