Skip to content

Commit

Permalink
Revert last commit and downgrade sphinx to fix docs builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed Feb 9, 2018
1 parent c1d1880 commit 46d1c48
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 1 deletion.
68 changes: 68 additions & 0 deletions docs/_themes/lucuma/genindex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{#
basic/genindex.html
~~~~~~~~~~~~~~~~~~~

Template for an "all-in-one" index.

:copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{% macro indexentries(firstname, links) %}
<dt>
{%- if links -%}
<a href="{{ links[0][1] }}">
{%- if links[0][0] %}<strong>{% endif -%}
{{ firstname|e }}
{%- if links[0][0] %}</strong>{% endif -%}
</a>

{%- for ismain, link in links[1:] -%}
, <a href="{{ link }}">{% if ismain %}<strong>{% endif -%}
[{{ loop.index }}]
{%- if ismain %}</strong>{% endif -%}
</a>
{%- endfor %}
{%- else %}
{{ firstname|e }}
{%- endif %}
</dt>
{% endmacro %}

{%- extends "layout.html" %}
{% set title = t_nav_index %}


{% block content %}
<div id="genindex">
<div class="wrapper">
<h1 id="index">{{ t.nav_index }}</h1>

<div class="genindex-jumpbox">
{% for key, dummy in genindexentries -%}
<a href="#{{ key }}"><strong>{{ key }}</strong></a>
{% if not loop.last %}| {% endif %}
{%- endfor %}
</div>

{%- for key, entries in genindexentries %}
<h2 id="{{ key }}">{{ key }}</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
{%- for column in entries|slice(2) if column %}
<td style="width: 33%" valign="top"><dl>
{%- for entryname, (links, subitems) in column %}
{{ indexentries(entryname, links) }}
{%- if subitems %}
<dd><dl>
{%- for subentryname, subentrylinks in subitems %}
{{ indexentries(subentryname, subentrylinks) }}
{%- endfor %}
</dl></dd>
{%- endif -%}
{%- endfor %}
</dl></td>
{%- endfor %}
</tr></table>
{% endfor %}
</div>
</div>
{% endblock %}
3 changes: 3 additions & 0 deletions docs/_themes/lucuma/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<link href="{{ pathto('_static/styles/responsive.css', 1) }}" rel="stylesheet">
<link href="{{ pathto('_static/styles/print.css', 1) }}" rel="stylesheet" media="print">

{% if hasdoc('genindex') -%}
<link rel="index" title="{{ t.nav_index }}" href="{{ pathto('genindex') }}">
{%- endif %}
{% if parents -%}
<link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}">
{%- endif %}
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-r ../dev-requirements-py3.txt
sphinx==1.6.7
sphinx==1.3.6 # pyup: ignore
sphinx-issues==0.4.0

0 comments on commit 46d1c48

Please sign in to comment.