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:
Tim Abbott 2018-04-05 11:35:28 -07:00
parent 98889608a2
commit 57ca19392e
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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>