Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tarantool-site theme #3125

Open
wants to merge 2 commits into
base: latest
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions _theme/tarantool-site/defindex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{#
basic/defindex.html
~~~~~~~~~~~~~~~~~~~

Default template for the "index" page.

:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{%- extends "layout.html" %}
{% set title = _('Overview') %}
{% block body %}
<h1>{{ docstitle|e }}</h1>
<p>
{{ _('Welcome! This is') }}
{% block description %}{{ _('the documentation for') }} {{ project|e }}
{{ release|e }}{% if last_updated %}, {{ _('last updated') }} {{ last_updated|e }}{% endif %}{% endblock %}.
</p>
{% block tables %}
<p><strong>{{ _('Indices and tables:') }}</strong></p>
<table class="contentstable" align="center"><tr>
<td width="50%">
<p class="biglink"><a class="biglink" href="{{ pathto("contents") }}">{{ _('Complete Table of Contents') }}</a><br>
<span class="linkdescr">{{ _('lists all sections and subsections') }}</span></p>
<p class="biglink"><a class="biglink" href="{{ pathto("search") }}">{{ _('Search Page') }}</a><br>
<span class="linkdescr">{{ _('search this documentation') }}</span></p>
</td><td width="50%">
<p class="biglink"><a class="biglink" href="{{ pathto("modindex") }}">{{ _('Global Module Index') }}</a><br>
<span class="linkdescr">{{ _('quick access to all modules') }}</span></p>
<p class="biglink"><a class="biglink" href="{{ pathto("genindex") }}">{{ _('General Index') }}</a><br>
<span class="linkdescr">{{ _('all functions, classes, terms') }}</span></p>
</td></tr>
</table>
{% endblock %}
{% endblock %}
85 changes: 85 additions & 0 deletions _theme/tarantool-site/domainindex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{#
basic/domainindex.html
~~~~~~~~~~~~~~~~~~~~~~

Template for domain indices (module index, ...).

:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{%- extends "layout.html" %}
{% set title = indextitle %}

{% block extrahead %}
{{ super() }}
{% if not embedded and collapse_index %}
<script type="text/javascript">
DOCUMENTATION_OPTIONS.COLLAPSE_INDEX = true;
</script>
{% endif %}
{% endblock %}

{% block body %}
<section class="b-block b-modindex-block-top">
<div class="b-block-wrapper">
{%- set groupid = idgen() %}

<h1 class="b-section-title" id="index">{{ indextitle }}</h1>

<div class="modindex-jumpbox">
{%- for (letter, entries) in content %}
<a href="#cap-{{ letter }}"><strong>{{ letter }}</strong></a>
{%- if not loop.last %} | {% endif %}
{%- endfor %}
</div>
</div>
</section>

<section class="b-block b-modindex-block">
<div class="b-block-wrapper">
<table class="indextable modindextable"
cellspacing="0"
cellpadding="2">
{%- for letter, entries in content %}
<tr class="pcap">
<td></td>
<td>&#160;</td>
<td></td>
</tr>
<tr class="cap" id="cap-{{ letter }}">
<td></td>
<td><strong>{{ letter }}</strong></td>
<td></td>
</tr>
{%- for (name, grouptype, page, anchor,
extra, qualifier, description) in entries %}
<tr{% if grouptype == 2 %} class="cg-{{ groupid.current() }}"{% endif %}>
<td>
{% if grouptype == 1 -%}
<img src="{{ pathto('_static/minus.png', 1) }}"
class="toggler"
id="toggle-{{ groupid.next() }}"
style="display: none"
alt="-" />
{%- endif %}
</td>
<td>
{% if grouptype == 2 %}&#160;&#160;&#160;{% endif %}
{% if page %}<a href="{{ pathto(page) }}#{{ anchor }}">{% endif -%}
<code class="xref">{{ name|e }}</code>
{%- if page %}</a>{% endif %}
{%- if extra %}<em>({{ extra|e }})</em>{% endif -%}
</td>
<td>
{% if qualifier %}<strong>{{ qualifier|e }}:</strong>{% endif %}
<em>{{ description|e }}</em>
</td>
</tr>
{%- endfor %}
{%- endfor %}
</table>
</div>
</section>
{% endblock %}

{# vim: syntax=htmldjango ts=2 sts=2 sw=2 expandtab #}
Loading