Skip to content

Commit

Permalink
docs: Support newer version of Sphinx (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdarwin authored Oct 5, 2022
1 parent 1f89d62 commit 135edcf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/_static/boost.css
Original file line number Diff line number Diff line change
Expand Up @@ -714,3 +714,22 @@ span.purple { color: purple; }
span.gold { color: gold; }
span.silver { color: silver; } /* lighter gray */
span.gray { color: #808080; } /* light gray */

/* 2022 fix */

ol.simple ol p,
ol.simple ul p,
ul.simple ol p,
ul.simple ul p {
margin-top: 0;
}

ol.simple > li:not(:first-child) > p,
ul.simple > li:not(:first-child) > p {
margin-top: 0;
}

ol.simple p,
ul.simple p {
margin-bottom: 0;
}
3 changes: 3 additions & 0 deletions doc/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
{%- for scriptfile in script_files %}
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
{%- endfor %}
<script data-url_root="{{ pathto('', 1) }}" id="documentation_options" src="{{ pathto('', 1) }}_static/documentation_options.js"></script>
<script src="{{ pathto('', 1) }}_static/searchtools.js"></script>
<script src={{ pathto('', 1) }}"_static/language_data.js"></script>
{%- if use_opensearch %}
<link rel="search" type="application/opensearchdescription+xml"
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
Expand Down

0 comments on commit 135edcf

Please sign in to comment.