Skip to content

Commit 4fc3afa

Browse files
sdarwinstefanseefeld
authored andcommitted
Support newer version of Sphinx
1 parent ff0ae9b commit 4fc3afa

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

doc/numpy/_static/boost.css

+20
Original file line numberDiff line numberDiff line change
@@ -714,3 +714,23 @@ span.purple { color: purple; }
714714
span.gold { color: gold; }
715715
span.silver { color: silver; } /* lighter gray */
716716
span.gray { color: #808080; } /* light gray */
717+
718+
/* 2022 fix */
719+
720+
ol.simple ol p,
721+
ol.simple ul p,
722+
ul.simple ol p,
723+
ul.simple ul p {
724+
margin-top: 0;
725+
}
726+
727+
ol.simple > li:not(:first-child) > p,
728+
ul.simple > li:not(:first-child) > p {
729+
margin-top: 0;
730+
}
731+
732+
ol.simple p,
733+
ul.simple p {
734+
margin-bottom: 0;
735+
}
736+

doc/numpy/_templates/layout.html

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
{%- for scriptfile in script_files %}
5050
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
5151
{%- endfor %}
52+
<script data-url_root="{{ pathto('', 1) }}" id="documentation_options" src="{{ pathto('', 1) }}_static/documentation_options.js"></script>
53+
<script src="{{ pathto('', 1) }}_static/searchtools.js"></script>
54+
<script src="{{ pathto('', 1) }}_static/language_data.js"></script>
5255
{%- if use_opensearch %}
5356
<link rel="search" type="application/opensearchdescription+xml"
5457
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"

0 commit comments

Comments
 (0)