mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
docs: Add doc root links to sidebar.
A recent commit (5a94bfcb88)
introduced a couple of regressions:
* The part of help.js that highlights the active page in the
sidebar raised an exception on /help and /api since there
was nothing to highlight for the doc roots in the sidebar
anymore.
* Moving the doc root links to the header after the logo made
it such that on narrow mobile widths, there was no way to get
to the doc root since the links in the header were truncated.
With a CSS change by tabbott to avoid awkward vertical spacing.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<div class="sidebar">
|
||||
<div class="content">
|
||||
<h1><a href="https://zulip.com" class="no-underline">Zulip homepage</a></h1>
|
||||
<h1><a href="{{ doc_root }}" class="no-underline">{{ doc_root_title }} home</a></h1>
|
||||
{{ render_markdown_path(sidebar_index, api_uri_context) }}
|
||||
<h1 class="home-link"><a href="/" class="no-underline">Back to Zulip</a></h1>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user