Skip to content

Commit 7353402

Browse files
committed
CDRIVER-3496 vendor basic theme from Sphinx 1.7
Otherwise the produced _static files differ from different versions of Sphinx. To include built docs in the dist, we need to explicitly list the static files.
1 parent 757f95a commit 7353402

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+14329
-6
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
2+
"http://www.w3.org/TR/html4/frameset.dtd">
3+
<html{% if language is not none %} lang="{{ language }}"{% endif %}>
4+
<head>
5+
<title>{% trans version=version|e, docstitle=docstitle|e %}Changes in Version {{ version }} &#8212; {{ docstitle }}{% endtrans %}</title>
6+
</head>
7+
<frameset cols="45%,*">
8+
<frame name="main" src="changes.html">
9+
<frame name="src" src="about:blank">
10+
</frameset>
11+
</html>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2+
"http://www.w3.org/TR/html4/loose.dtd">
3+
<html{% if language is not none %} lang="{{ language }}"{% endif %}>
4+
<head>
5+
<title>{% trans filename=filename, docstitle=docstitle|e %}{{ filename }} &#8212; {{ docstitle }}{% endtrans %}</title>
6+
<style type="text/css">
7+
.hl { background-color: yellow }
8+
</style>
9+
</head>
10+
<body style="font-size: 90%">
11+
<pre>
12+
{{ text }}
13+
</pre>
14+
</body>
15+
</html>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{% macro entries(changes) %}
2+
<ul>{% for entry, docname, lineno in changes %}
3+
<li><a href="rst/{{ docname }}.html#L{{ lineno-10 }}" target="src">{{ entry }}</a></li>
4+
{% endfor %}</ul>
5+
{% endmacro -%}
6+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
7+
"http://www.w3.org/TR/html4/loose.dtd">
8+
<html{% if language is not none %} lang="{{ language }}"{% endif %}>
9+
<head>
10+
<link rel="stylesheet" href="default.css">
11+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
12+
<title>{% trans version=version|e, docstitle=docstitle|e %}Changes in Version {{ version }} &#8212; {{ docstitle }}{% endtrans %}</title>
13+
</head>
14+
<body>
15+
<div class="document">
16+
<div class="body">
17+
<h1>{% trans version=version|e %}Automatically generated list of changes in version {{ version }}{% endtrans %}</h1>
18+
<h2>{{ _('Library changes') }}</h2>
19+
{% for modname, changes in libchanges %}
20+
<h4>{{ modname }}</h4>
21+
{{ entries(changes) }}
22+
{% endfor %}
23+
<h2>{{ _('C API changes') }}</h2>
24+
{{ entries(apichanges) }}
25+
<h2>{{ _('Other changes') }}</h2>
26+
{% for (fn, title), changes in otherchanges %}
27+
<h4>{{ title }} <span style="font-size: 50%">({{ fn }})</span></h4>
28+
{{ entries(changes) }}
29+
{% endfor %}
30+
</div>
31+
</div>
32+
</body>
33+
</html>

build/sphinx/basic/defindex.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{#
2+
basic/defindex.html
3+
~~~~~~~~~~~~~~~~~~~
4+
5+
Default template for the "index" page.
6+
7+
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
8+
:license: BSD, see LICENSE for details.
9+
#}{{ warn('Now base template defindex.html is deprecated.') }}
10+
{%- extends "layout.html" %}
11+
{% set title = _('Overview') %}
12+
{% block body %}
13+
<h1>{{ docstitle|e }}</h1>
14+
<p>
15+
{{ _('Welcome! This is') }}
16+
{% block description %}{{ _('the documentation for') }} {{ project|e }}
17+
{{ release|e }}{% if last_updated %}, {{ _('last updated') }} {{ last_updated|e }}{% endif %}{% endblock %}.
18+
</p>
19+
{% block tables %}
20+
<p><strong>{{ _('Indices and tables:') }}</strong></p>
21+
<table class="contentstable"><tr>
22+
<td style="width: 50%">
23+
<p class="biglink"><a class="biglink" href="{{ pathto("contents") }}">{{ _('Complete Table of Contents') }}</a><br>
24+
<span class="linkdescr">{{ _('lists all sections and subsections') }}</span></p>
25+
<p class="biglink"><a class="biglink" href="{{ pathto("search") }}">{{ _('Search Page') }}</a><br>
26+
<span class="linkdescr">{{ _('search this documentation') }}</span></p>
27+
</td><td style="width: 50%">
28+
<p class="biglink"><a class="biglink" href="{{ pathto("modindex") }}">{{ _('Global Module Index') }}</a><br>
29+
<span class="linkdescr">{{ _('quick access to all modules') }}</span></p>
30+
<p class="biglink"><a class="biglink" href="{{ pathto("genindex") }}">{{ _('General Index') }}</a><br>
31+
<span class="linkdescr">{{ _('all functions, classes, terms') }}</span></p>
32+
</td></tr>
33+
</table>
34+
{% endblock %}
35+
{% endblock %}

build/sphinx/basic/domainindex.html

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{#
2+
basic/domainindex.html
3+
~~~~~~~~~~~~~~~~~~~~~~
4+
5+
Template for domain indices (module index, ...).
6+
7+
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
8+
:license: BSD, see LICENSE for details.
9+
#}
10+
{%- extends "layout.html" %}
11+
{% set title = indextitle %}
12+
{% block extrahead %}
13+
{{ super() }}
14+
{% if not embedded and collapse_index %}
15+
<script type="text/javascript">
16+
DOCUMENTATION_OPTIONS.COLLAPSE_INDEX = true;
17+
</script>
18+
{% endif %}
19+
{% endblock %}
20+
{% block body %}
21+
22+
{%- set groupid = idgen() %}
23+
24+
<h1>{{ indextitle }}</h1>
25+
26+
<div class="modindex-jumpbox">
27+
{%- for (letter, entries) in content %}
28+
<a href="#cap-{{ letter }}"><strong>{{ letter }}</strong></a>
29+
{%- if not loop.last %} | {% endif %}
30+
{%- endfor %}
31+
</div>
32+
33+
<table class="indextable modindextable">
34+
{%- for letter, entries in content %}
35+
<tr class="pcap"><td></td><td>&#160;</td><td></td></tr>
36+
<tr class="cap" id="cap-{{ letter }}"><td></td><td>
37+
<strong>{{ letter }}</strong></td><td></td></tr>
38+
{%- for (name, grouptype, page, anchor, extra, qualifier, description)
39+
in entries %}
40+
<tr{% if grouptype == 2 %} class="cg-{{ groupid.current() }}"{% endif %}>
41+
<td>{% if grouptype == 1 -%}
42+
<img src="{{ pathto('_static/minus.png', 1) }}" class="toggler"
43+
id="toggle-{{ groupid.next() }}" style="display: none" alt="-" />
44+
{%- endif %}</td>
45+
<td>{% if grouptype == 2 %}&#160;&#160;&#160;{% endif %}
46+
{% if page %}<a href="{{ pathto(page) }}#{{ anchor }}">{% endif -%}
47+
<code class="xref">{{ name|e }}</code>
48+
{%- if page %}</a>{% endif %}
49+
{%- if extra %} <em>({{ extra|e }})</em>{% endif -%}
50+
</td><td>{% if qualifier %}<strong>{{ qualifier|e }}:</strong>{% endif %}
51+
<em>{{ description|e }}</em></td></tr>
52+
{%- endfor %}
53+
{%- endfor %}
54+
</table>
55+
56+
{% endblock %}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{#
2+
basic/genindex-single.html
3+
~~~~~~~~~~~~~~~~~~~~~~~~~~
4+
5+
Template for a "single" page of a split index.
6+
7+
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
8+
:license: BSD, see LICENSE for details.
9+
#}
10+
{% macro indexentries(firstname, links) %}
11+
{%- if links -%}
12+
<a href="{{ links[0][1] }}">
13+
{%- if links[0][0] %}<strong>{% endif -%}
14+
{{ firstname|e }}
15+
{%- if links[0][0] %}</strong>{% endif -%}
16+
</a>
17+
18+
{%- for ismain, link in links[1:] -%}
19+
, <a href="{{ link }}">{% if ismain %}<strong>{% endif -%}
20+
[{{ loop.index }}]
21+
{%- if ismain %}</strong>{% endif -%}
22+
</a>
23+
{%- endfor %}
24+
{%- else %}
25+
{{ firstname|e }}
26+
{%- endif %}
27+
{% endmacro %}
28+
29+
{%- extends "layout.html" %}
30+
{% set title = _('Index') %}
31+
{% block body %}
32+
33+
<h1 id="index">{% trans key=key %}Index &ndash; {{ key }}{% endtrans %}</h1>
34+
35+
<table style="width: 100%" class="indextable"><tr>
36+
{%- for column in entries|slice(2) if column %}
37+
<td style="width: 33%; vertical-align: top;"><ul>
38+
{%- for entryname, (links, subitems, _) in column %}
39+
<li>{{ indexentries(entryname, links) }}
40+
{%- if subitems %}
41+
<ul>
42+
{%- for subentryname, subentrylinks in subitems %}
43+
<li>{{ indexentries(subentryname, subentrylinks) }}</li>
44+
{%- endfor %}
45+
</ul>
46+
{%- endif -%}</li>
47+
{%- endfor %}
48+
</ul></td>
49+
{%- endfor %}
50+
</tr></table>
51+
52+
{% endblock %}
53+
54+
{% block sidebarrel %}
55+
<h4>{{ _('Index') }}</h4>
56+
<p>{% for key, dummy in genindexentries -%}
57+
<a href="{{ pathto('genindex-' + key) }}"><strong>{{ key }}</strong></a>
58+
{% if not loop.last %}| {% endif %}
59+
{%- endfor %}</p>
60+
61+
<p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
62+
{{ super() }}
63+
{% endblock %}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{#
2+
basic/genindex-split.html
3+
~~~~~~~~~~~~~~~~~~~~~~~~~
4+
5+
Template for a "split" index overview page.
6+
7+
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
8+
:license: BSD, see LICENSE for details.
9+
#}
10+
{%- extends "layout.html" %}
11+
{% set title = _('Index') %}
12+
{% block body %}
13+
14+
<h1 id="index">{{ _('Index') }}</h1>
15+
16+
<p>{{ _('Index pages by letter') }}:</p>
17+
18+
<div class="genindex-jumpbox">
19+
<p>{% for key, dummy in genindexentries -%}
20+
<a href="{{ pathto('genindex-' + key) }}"><strong>{{ key }}</strong></a>
21+
{% if not loop.last %}| {% endif %}
22+
{%- endfor %}</p>
23+
24+
<p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong>
25+
({{ _('can be huge') }})</a></p>
26+
</div>
27+
28+
{% endblock %}
29+
30+
{% block sidebarrel %}
31+
{% if split_index %}
32+
<h4>Index</h4>
33+
<p>{% for key, dummy in genindexentries -%}
34+
<a href="{{ pathto('genindex-' + key) }}"><strong>{{ key }}</strong></a>
35+
{% if not loop.last %}| {% endif %}
36+
{%- endfor %}</p>
37+
38+
<p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
39+
{% endif %}
40+
{{ super() }}
41+
{% endblock %}

build/sphinx/basic/genindex.html

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{#
2+
basic/genindex.html
3+
~~~~~~~~~~~~~~~~~~~
4+
5+
Template for an "all-in-one" index.
6+
7+
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
8+
:license: BSD, see LICENSE for details.
9+
#}
10+
{% macro indexentries(firstname, links) %}
11+
{%- if links -%}
12+
<a href="{{ links[0][1] }}">
13+
{%- if links[0][0] %}<strong>{% endif -%}
14+
{{ firstname|e }}
15+
{%- if links[0][0] %}</strong>{% endif -%}
16+
</a>
17+
18+
{%- for ismain, link in links[1:] -%}
19+
, <a href="{{ link }}">{% if ismain %}<strong>{% endif -%}
20+
[{{ loop.index }}]
21+
{%- if ismain %}</strong>{% endif -%}
22+
</a>
23+
{%- endfor %}
24+
{%- else %}
25+
{{ firstname|e }}
26+
{%- endif %}
27+
{% endmacro %}
28+
29+
{%- extends "layout.html" %}
30+
{% set title = _('Index') %}
31+
{% block body %}
32+
33+
<h1 id="index">{{ _('Index') }}</h1>
34+
35+
<div class="genindex-jumpbox">
36+
{% for key, dummy in genindexentries -%}
37+
<a href="#{{ key }}"><strong>{{ key }}</strong></a>
38+
{% if not loop.last %}| {% endif %}
39+
{%- endfor %}
40+
</div>
41+
42+
{%- for key, entries in genindexentries %}
43+
<h2 id="{{ key }}">{{ key }}</h2>
44+
<table style="width: 100%" class="indextable genindextable"><tr>
45+
{%- for column in entries|slice_index(2) if column %}
46+
<td style="width: 33%; vertical-align: top;"><ul>
47+
{%- for entryname, (links, subitems, _) in column %}
48+
<li>{{ indexentries(entryname, links) }}
49+
{%- if subitems %}
50+
<ul>
51+
{%- for subentryname, subentrylinks in subitems %}
52+
<li>{{ indexentries(subentryname, subentrylinks) }}</li>
53+
{%- endfor %}
54+
</ul>
55+
{%- endif -%}</li>
56+
{%- endfor %}
57+
</ul></td>
58+
{%- endfor %}
59+
</tr></table>
60+
{% endfor %}
61+
62+
{% endblock %}
63+
64+
{% block sidebarrel %}
65+
{% if split_index %}
66+
<h4>{{ _('Index') }}</h4>
67+
<p>{% for key, dummy in genindexentries -%}
68+
<a href="{{ pathto('genindex-' + key) }}"><strong>{{ key }}</strong></a>
69+
{% if not loop.last %}| {% endif %}
70+
{%- endfor %}</p>
71+
72+
<p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
73+
{% endif %}
74+
{{ super() }}
75+
{% endblock %}

build/sphinx/basic/globaltoc.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{#
2+
basic/globaltoc.html
3+
~~~~~~~~~~~~~~~~~~~~
4+
5+
Sphinx sidebar template: global table of contents.
6+
7+
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
8+
:license: BSD, see LICENSE for details.
9+
#}
10+
<h3><a href="{{ pathto(master_doc) }}">{{ _('Table Of Contents') }}</a></h3>
11+
{{ toctree() }}

0 commit comments

Comments
 (0)