Skip to content

Commit bc9e657

Browse files
committed
Add badges to sidebar
1 parent ca5fe37 commit bc9e657

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

doc/_templates/badgesidebar.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
<a href="http://depsy.org/package/python/matplotlib">
3+
<img src="http://depsy.org/api/package/pypi/matplotlib/badge.svg">
4+
</a>
5+
6+
<br/>
7+
8+
Travis-CI: <img src="https://travis-ci.org/matplotlib/matplotlib.svg?branch=master"/>
9+
10+
<br/>

doc/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,11 @@
185185
#html_sidebars = {}
186186

187187
# Custom sidebar templates, maps page names to templates.
188-
html_sidebars = {'index': 'indexsidebar.html',
189-
}
190-
188+
html_sidebars = {
189+
'index': ['badgesidebar.html', 'indexsidebar.html'],
190+
'**': ['badgesidebar.html', 'localtoc.html',
191+
'relations.html', 'sourcelink.html', 'searchbox.html']
192+
}
191193

192194
# Additional templates that should be rendered to pages, maps page names to
193195
# template names.

0 commit comments

Comments
 (0)