mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-24 07:31:55 +08:00

The "classic" theme is a mostly useless wrapper around the basic theme that just adds a collapsible sidebar (that we no longer have). Moving to basic directly drops a layer of indirection and a file that needs to be transferred over the net. Same thing goes for "default.css" which literally just includes classic.css (WHYYYY???) (also this removes some useless javascript)
61 lines
2.5 KiB
HTML
61 lines
2.5 KiB
HTML
{% extends "basic/layout.html" %}
|
|
{# Remove broken "genindex" link - unfortunately this takes with it the acceptable "next" and "previous" links, but they're not super necessary. #}
|
|
{% set rellinks = [] %}
|
|
|
|
{% block rootrellink %}
|
|
<li><img src="{{ pathto('_static/' + theme_root_icon, 1) }}" alt=""
|
|
style="max-width: 80px; vertical-align: middle; margin-top: -1px"/></li>
|
|
<li><a href="{{theme_root_url}}">{{theme_root_name}}</a>{{ reldelim1 }}</li>
|
|
{% if theme_root_include_title %}
|
|
<a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{%- macro searchbox() %}
|
|
{# modified from sphinx/themes/basic/searchbox.html #}
|
|
{%- if builder != "htmlhelp" %}
|
|
<div class="inline-search" style="display: none" role="search">
|
|
<form class="inline-search" action="{{ pathto('search') }}" method="get">
|
|
<input placeholder="{{ _('Quick search') }}" type="text" name="q" />
|
|
<input type="submit" value="{{ _('Go') }}" />
|
|
<input type="hidden" name="check_keywords" value="yes" />
|
|
<input type="hidden" name="area" value="default" />
|
|
</form>
|
|
</div>
|
|
<script type="text/javascript">$('.inline-search').show(0);</script>
|
|
{%- endif %}
|
|
{%- endmacro %}
|
|
|
|
{% block header %}<div id="fmain">{% endblock %}
|
|
{% block relbar1 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
|
|
{% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
|
|
{% block relbaritems %}
|
|
{%- if pagename != "search" and builder != "singlehtml" and builder != "htmlhelp" %}
|
|
<li class="right">
|
|
{{ searchbox() }}
|
|
</li>
|
|
{%- endif %}
|
|
{% endblock %}
|
|
|
|
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
|
|
{% block sidebar2 %} {% endblock %}
|
|
{% block extrahead %}
|
|
<link rel="shortcut icon" type="image/png" href="{{ pathto('_static/' + theme_root_icon, 1) }}" />
|
|
{{ super() }}
|
|
{% endblock %}
|
|
|
|
{% block footer %}
|
|
<div class="footer">
|
|
© {% trans %}Copyright{% endtrans %} {{ copyright|e }}.
|
|
<br />
|
|
{%- if last_updated %}
|
|
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
|
|
{%- endif %}
|
|
{% if theme_issues_url %}{% trans pathto_bugs=theme_issues_url %}<a href="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}{% endif %}
|
|
<br />
|
|
|
|
{% trans sphinx_version=sphinx_version|e %}Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|