Skip to content

Commit 8cdc134

Browse files
committed
FIX
1 parent 1e85e51 commit 8cdc134

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

docs/conf.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import datetime
2+
13
# Configuration file for the Sphinx documentation builder for
24
# matplotlib projects.
35

@@ -7,8 +9,10 @@
79
# -- Project information -----------------------------------------------------
810

911
project = "Matplotlib Sphinx Theme"
10-
copyright = "2021, Matplotlib Contributors"
11-
author = "Matplotlib Contributors"
12+
copyright = (
13+
f"2012 - {datetime.datetime.now().year} The Matplotlib development team"
14+
)
15+
author = "Matplotlib Developers"
1216

1317

1418
# -- General configuration ---------------------------------------------------
@@ -35,7 +39,6 @@
3539
# and CI builds https://github.com/pydata/pydata-sphinx-theme/pull/386
3640
"collapse_navigation": not is_release_build,
3741
"show_prev_next": False,
38-
"navbar_center": ["mpl_nav_bar.html"],
3942
"native_site": False
4043
}
4144

mpl_sphinx_theme/icon-links.html renamed to mpl_sphinx_theme/mpl_icon_links.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{%- block icon_links -%}
12
{%- macro icon_link_nav_item(url, icon, name) -%}
23
{%- if url | length > 2 %}
34
<li class="nav-item">
@@ -48,3 +49,4 @@
4849
</li>
4950
</ul>
5051
{%- endif %}
52+
{%- endblock %}

mpl_sphinx_theme/theme.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ stylesheet = css/style.css
44

55
[options]
66
native_site = False
7-
navbar_start = mpl_navbar_logo.html
7+
navbar_start = mpl_navbar_logo.html
8+
navbar_center = mpl_nav_bar.html
9+
navbar_end = mpl_icon_links.html
10+
logo_link =

0 commit comments

Comments
 (0)