Skip to content

Commit b14dbca

Browse files
authored
Merge pull request #4 from jklymak/fix-native
DOC: fix header
2 parents 17fcdd9 + b84c215 commit b14dbca

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
],
6060
"show_prev_next": False,
6161
"navbar_center": ["mpl_nav_bar.html"],
62+
"native_site": False
6263
}
6364

6465
# Add any paths that contain custom static files (such as style sheets) here,

mpl_sphinx_theme/_version.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env python
2+
# coding: utf-8
3+
4+
# Copyright (c) Matplotlib developers.
5+
# Distributed under the terms of the Modified BSD License.
6+
7+
version_info = (0, 0, 1)
8+
__version__ = ".".join(map(str, version_info))

mpl_sphinx_theme/mpl_nav_bar.html

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<ul id="navbar-main-elements" class="navbar-nav">
21

2+
{% if theme_native_site %}
3+
<ul id="navbar-main-elements" class="navbar-nav">
34
<li class="nav-item">
45
<a class="reference internal nav-link" href="{{ pathto('plot_types/index') }}">Plot types</a>
56
</li>
@@ -22,3 +23,28 @@
2223
<a class="reference internal nav-link" href="{{ pathto('users/release_notes') }}">Release notes</a>
2324
</li>
2425
</ul>
26+
{% else %}
27+
<ul id="navbar-main-elements" class="navbar-nav">
28+
<li class="nav-item">
29+
<a class="reference internal nav-link" href="https://matplotlib.org/plot_types/index">Plot types</a>
30+
</li>
31+
<li class="nav-item">
32+
<a class="reference internal nav-link" href="https://matplotlib.org/gallery/index">Examples</a>
33+
</li>
34+
<li class="nav-item">
35+
<a class="reference internal nav-link" href="https://matplotlib.org/tutorials/index">Tutorials</a>
36+
</li>
37+
<li class="nav-item">
38+
<a class="reference internal nav-link" href="https://matplotlib.org/api/index">Reference</a>
39+
</li>
40+
<li class="nav-item">
41+
<a class="reference internal nav-link" href="https://matplotlib.org/users/index">Usage guide</a>
42+
</li>
43+
<li class="nav-item">
44+
<a class="reference internal nav-link" href="https://matplotlib.org/devel/index">Develop</a>
45+
</li>
46+
<li class="nav-item">
47+
<a class="reference internal nav-link" href="https://matplotlib.org/users/release_notes">Release notes</a>
48+
</li>
49+
</ul>
50+
{% endif %}

0 commit comments

Comments
 (0)