Skip to content

Commit d43b503

Browse files
authored
Merge pull request #1 from jklymak/doc-add-logos
DOC: add logos
2 parents 7550b8e + 82f1a30 commit d43b503

File tree

7 files changed

+636
-26
lines changed

7 files changed

+636
-26
lines changed

.circleci/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ orbs:
44
python: circleci/[email protected]
55

66
jobs:
7+
pip-install:
8+
executor: python/default
9+
steps:
10+
- checkout
11+
- run:
12+
name: install theme
13+
command: python -m pip install --user -ve .
714
build_docs:
815
executor: python/default
916
steps:

.github/workflows/gh-pages.yml

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

docs/_static/favicon.ico

22 KB
Binary file not shown.

docs/_static/logo2.svg

Lines changed: 552 additions & 0 deletions
Loading

mpl_sphinx_theme/donate_sidebar.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
3+
4+
<div class="sidebar-donate">
5+
<a href="https://numfocus.org/donate-to-matplotlib" target="_blank">
6+
<span class="mpl-button" >Support Matplotlib</span>
7+
</a>
8+
</div>

mpl_sphinx_theme/mpl_nav_bar.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<ul id="navbar-main-elements" class="navbar-nav">
2+
3+
<li class="nav-item">
4+
<a class="reference internal nav-link" href="{{ pathto('plot_types/index') }}">Plot types</a>
5+
</li>
6+
<li class="nav-item">
7+
<a class="reference internal nav-link" href="{{ pathto('gallery/index') }}">Examples</a>
8+
</li>
9+
<li class="nav-item">
10+
<a class="reference internal nav-link" href="{{ pathto('tutorials/index') }}">Tutorials</a>
11+
</li>
12+
<li class="nav-item">
13+
<a class="reference internal nav-link" href="{{ pathto('api/index') }}">Reference</a>
14+
</li>
15+
<li class="nav-item">
16+
<a class="reference internal nav-link" href="{{ pathto('users/index') }}">Usage guide</a>
17+
</li>
18+
<li class="nav-item">
19+
<a class="reference internal nav-link" href="{{ pathto('devel/index') }}">Develop</a>
20+
</li>
21+
<li class="nav-item">
22+
<a class="reference internal nav-link" href="{{ pathto('users/release_notes') }}">Release notes</a>
23+
</li>
24+
</ul>

mpl_sphinx_theme/search.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{% extends "layout.html" %}
2+
{% set title = _('Search') %}
3+
{%- block scripts %}
4+
{{ super() }}
5+
<script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }}"></script>
6+
<script type="text/javascript" src="{{ pathto('_static/language_data.js', 1) }}"></script>
7+
{%- endblock %}
8+
{% block body %}
9+
<h1 id="search-documentation">{{ _('Search') }}</h1>
10+
<p>
11+
{% trans %}Searching for multiple words only shows matches that contain
12+
all words.{% endtrans %}
13+
</p>
14+
<p>
15+
If you want to limit your search to working code examples, include the
16+
keyword "codex" (mnemonic for <i>code example</i>) in your search, e.g.,
17+
"codex ellipse".
18+
</p>
19+
<form action="" method="get">
20+
<input type="text" name="q" value="" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
21+
<input type="submit" value="{{ _('search') }}" />
22+
<span id="search-progress" style="padding-left: 10px"></span>
23+
</form>
24+
{% if search_performed %}
25+
<h2>{{ _('Search Results') }}</h2>
26+
{% if not search_results %}
27+
<p>{{ _('Your search did not match any results.') }}</p>
28+
{% endif %}
29+
{% endif %}
30+
<div id="search-results">
31+
{% if search_results %}
32+
<ul>
33+
{% for href, caption, context in search_results %}
34+
<li><a href="{{ pathto(item.href) }}">{{ caption }}</a>
35+
<div class="context">{{ context|e }}</div>
36+
</li>
37+
{% endfor %}
38+
</ul>
39+
{% endif %}
40+
</div>
41+
{% endblock %}
42+
{% block footer %}
43+
{{ super() }}
44+
<script type="text/javascript" src="{{ pathto('searchindex.js', 1) }}" defer></script>
45+
{% endblock %}

0 commit comments

Comments
 (0)