Skip to content

Commit 80dd51d

Browse files
authored
Merge pull request #61 from QuLogic/announce-360
Announce 3.6.0 and update theme
2 parents 9754641 + ac3e1a4 commit 80dd51d

File tree

4 files changed

+40
-12
lines changed

4 files changed

+40
-12
lines changed

docs/_templates/layout.html

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,36 @@
33
{%- import "static/webpack-macros.html" as _webpack with context %}
44

55
{% block body_tag %}
6-
<body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80">
7-
<div class="document">
6+
{{- super() }}
7+
<div class="document">
88
{%- endblock %}
99
{%- block content %}
10-
{# Added to support a banner with an alert #}
11-
<div class="container-fluid" id="banner"></div>
10+
{# checkbox to toggle primary sidebar #}
11+
<input type="checkbox" class="sidebar-toggle" name="__primary" id="__primary">
12+
<label class="overlay overlay-primary" for="__primary"></label>
1213

13-
{% block docs_navbar %}{{ super() }}{% endblock %}
14-
<main role="main">
15-
{% block body %} {% endblock %}
16-
</main>
14+
{# Checkboxes to toggle the secondary sidebar #}
15+
<input type="checkbox" class="sidebar-toggle" name="__secondary" id="__secondary">
16+
<label class="overlay overlay-secondary" for="__secondary"></label>
17+
18+
{# A search field pop-up that will only show when the search button is clicked #}
19+
<div class="search-button__wrapper">
20+
<div class="search-button__overlay"></div>
21+
<div class="search-button__search-container">
22+
{% include "../components/search-field.html" %}
23+
</div>
24+
</div>
25+
26+
{%- if theme_announcement -%}
27+
<div class="bd-header-announcement container-fluid" id="header-announcement">
28+
{% include "sections/announcement.html" %}
29+
</div>
30+
{%- endif %}
31+
32+
{% block docs_navbar %}{{ super() }}{% endblock %}
33+
<main role="main">
34+
{% block body %} {% endblock %}
35+
</main>
1736

1837
{%- block scripts_end %}{{ super() }}{%- endblock %}
1938
{%- endblock %}

docs/body.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ <h1>Matplotlib: Visualization with Python</h1>
121121
<!-- optional important news -->
122122
<h3>News</h3>
123123
<div class="news__item--highlight">
124+
<h5 class="date">September 16, 2022</h5>
125+
<a href="https://discourse.matplotlib.org/t/matplotlib-announce-ann-matplotlib-3-6-0/23129" class="link--offsite">Matplotlib 3.6.0 Released</a>
126+
</div>
127+
128+
<div class="news__item">
124129
<h5 class="date">May 2, 2022</h5>
125130
<a href="https://discourse.matplotlib.org/t/matplotlib-announce-ann-matplotlib-3-5-2/22805" class="link--offsite">Matplotlib 3.5.2 Released</a>
126131
</div>

docs/conf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@
3636
html_theme = "mpl_sphinx_theme"
3737
html_favicon = "_static/favicon.ico"
3838
html_theme_options = {
39-
"logo_link": "https://matplotlib.org/stable/",
40-
"native_site": False,
39+
"logo": {
40+
"link": "https://matplotlib.org/stable/",
41+
"image_light": "images/logo2.svg",
42+
"image_dark": "images/logo_dark.svg",
43+
},
44+
"navbar_links": "server-stable",
4145
"footer_items": ["landing_footer"],
4246
}
4347

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jinja2>3
2-
pydata-sphinx-theme<0.9.0
3-
mpl-sphinx-theme
2+
mpl-sphinx-theme~=3.6.0
3+
pygments>=2.7
44
sphinx
55
sphinx-notfound-page

0 commit comments

Comments
 (0)