Skip to content

Commit b6233e2

Browse files
authored
Merge pull request #11 from jklymak/fix-links
FIX: fix links in navbar
2 parents 8dd8a45 + 102a07f commit b6233e2

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

README.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,25 @@ installation.
1616

1717
See the ``docs/conf.py`` file for other settings.
1818

19+
There are three main templates that replace the defaults in ``pydata-sphinx-theme``:
20+
21+
.. code-block::
22+
23+
navbar_start = mpl_navbar_logo.html
24+
navbar_center = mpl_nav_bar.html
25+
navbar_end = mpl_icon_links.html
26+
27+
Note that the option ``html_logo`` need not be specified as it is included
28+
in ``mpl_sphinx_theme/mpl_navbar_logo.html``. The logo is stored at
29+
``mpl_sphinx_theme/static/images/logo2.svg``.
30+
31+
To change the top navbar, edit ``mpl_sphinx_theme/mpl_nav_bar.html``
32+
33+
To change the social icons, edit ``mpl_sphinx_theme/mpl_icon_links.html``
34+
35+
To change the style, edit ``mpl_sphinx_theme/static/css/style.css``
36+
37+
1938
Releasing
2039
---------
2140

mpl_sphinx_theme/mpl_nav_bar.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,25 @@
2525
{% else %}
2626
<ul id="navbar-main-elements" class="navbar-nav">
2727
<li class="nav-item">
28-
<a class="reference internal nav-link" href="https://matplotlib.org/plot_types/index">Plot types</a>
28+
<a class="reference internal nav-link" href="https://matplotlib.org/stable/plot_types/index">Plot types</a>
2929
</li>
3030
<li class="nav-item">
31-
<a class="reference internal nav-link" href="https://matplotlib.org/gallery/index">Examples</a>
31+
<a class="reference internal nav-link" href="https://matplotlib.org/stable/gallery/index">Examples</a>
3232
</li>
3333
<li class="nav-item">
34-
<a class="reference internal nav-link" href="https://matplotlib.org/tutorials/index">Tutorials</a>
34+
<a class="reference internal nav-link" href="https://matplotlib.org/stable/tutorials/index">Tutorials</a>
3535
</li>
3636
<li class="nav-item">
37-
<a class="reference internal nav-link" href="https://matplotlib.org/api/index">Reference</a>
37+
<a class="reference internal nav-link" href="https://matplotlib.org/stable/api/index">Reference</a>
3838
</li>
3939
<li class="nav-item">
40-
<a class="reference internal nav-link" href="https://matplotlib.org/users/index">Usage guide</a>
40+
<a class="reference internal nav-link" href="https://matplotlib.org/stable/users/index">Usage guide</a>
4141
</li>
4242
<li class="nav-item">
43-
<a class="reference internal nav-link" href="https://matplotlib.org/devel/index">Develop</a>
43+
<a class="reference internal nav-link" href="https://matplotlib.org/stable/devel/index">Develop</a>
4444
</li>
4545
<li class="nav-item">
46-
<a class="reference internal nav-link" href="https://matplotlib.org/users/release_notes">Release notes</a>
46+
<a class="reference internal nav-link" href="https://matplotlib.org/stable/users/release_notes">Release notes</a>
4747
</li>
4848
</ul>
4949
{% endif %}

0 commit comments

Comments
 (0)