docs: Move homepage link to TOC tree.

This lets us avoid maintaining a forked copy of sphinx_rtd_theme’s
sidebartitle block.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-03-03 22:04:15 -08:00 committed by Tim Abbott
parent 821584b8fc
commit 7b47b6a311
4 changed files with 1 additions and 30 deletions

View File

@ -9,7 +9,3 @@
.wy-table-responsive {
overflow: visible !important;
}
.wy-side-nav-search > a.home-link {
font-weight: 100;
}

View File

@ -1,29 +1,5 @@
{% extends "!layout.html" %}
{% block sidebartitle %}
{%- if logo and theme_logo_only %}
<a href="{{ pathto(root_doc) }}">
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/>
</a>
{%- endif %}
{%- if theme_display_version %}
{%- set nav_version = version %}
{%- if READTHEDOCS and current_version %}
{%- set nav_version = current_version %}
{%- endif %}
{%- if nav_version %}
<div class="version">
{{ nav_version }}
</div>
{%- endif %}
{%- endif %}
<a class="reference external home-link" href="https://zulip.com/">Zulip homepage</a>
{%- include "searchbox.html" %}
{% endblock %}
{% block document %}
{#
# This allows us to insert a warning that appears only on the development

View File

@ -42,6 +42,7 @@ Contents:
maxdepth: 3
---
Zulip homepage <https://zulip.com/>
overview/index
```

View File

@ -28,8 +28,6 @@ EXCLUDED_FILES = [
"web/images/icons/template.hbs",
# Template checker recommends very hard to read indentation.
"web/templates/bookend.hbs",
# The parser does not like the indentation of custom ReadTheDocs templates
"docs/_templates/layout.html",
]