Skip to content

Commit 4421116

Browse files
authored
Merge pull request #134 from QuLogic/update-theme
Update to 3.6 Sphinx theme
2 parents c11e6e3 + 34a4a70 commit 4421116

File tree

5 files changed

+12
-219
lines changed

5 files changed

+12
-219
lines changed

docs/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ jinja2
22
markdown
33
pyyaml
44
sphinx
5-
mpl-sphinx-theme
6-
pydata-sphinx-theme<0.9.0
5+
mpl-sphinx-theme~=3.6.0

docs/source/_static/badges/conda-empty.svg

Lines changed: 0 additions & 101 deletions
This file was deleted.

docs/source/_static/badges/pip-empty.svg

Lines changed: 0 additions & 101 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@
1616
html_theme = "mpl_sphinx_theme"
1717
html_static_path = ["./_static"]
1818
html_theme_options = {
19-
"logo_link": "https://matplotlib.org/stable",
20-
"native_site": False,
19+
"logo": {
20+
"link": "https://matplotlib.org/stable",
21+
"image_light": "images/logo2.svg",
22+
"image_dark": "images/logo_dark.svg",
23+
},
24+
"navbar_links": "internal",
25+
"page_sidebar_items": "page-toc.html",
2126
}
2227

2328
html_css_files = [
@@ -27,4 +32,3 @@
2732
html_sidebars = {
2833
'**': ['localtoc.html']
2934
}
30-

python/template.rst

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,20 @@
2323
</a>
2424
</td>
2525

26-
{% if 'pypi' in package.badges %}
2726
<td>
27+
{% if 'pypi' in package.badges %}
2828
<a href="https://pypi.org/project/{{ package.pypi_name }}">
2929
<img src="_static/badges/pip-orange.svg">
3030
</a>
31-
</td>
32-
{% else %}
33-
<td>
34-
<img src="_static/badges/pip-empty.svg">
35-
</td>
3631
{% endif %}
37-
{% if 'conda' in package.badges %}
32+
</td>
3833
<td>
34+
{% if 'conda' in package.badges %}
3935
<a href="https://anaconda.org/{{ package.conda_channel }}/{{ package.conda_package }}">
4036
<img src="_static/badges/conda-blue.svg">
4137
</a>
42-
</td>
43-
{% else %}
44-
<td>
45-
<img src="_static/badges/conda-empty.svg">
38+
{% endif %}
4639
</td>
47-
{% endif %}
4840

4941
<td>
5042
{% if 'site' in package.badges %}

0 commit comments

Comments
 (0)