Skip to content

Commit e68bc68

Browse files
committed
add version to documentation header
1 parent fb2c15b commit e68bc68

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

doc/_templates/layout.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,13 @@ <h3>{{ _('Navigation') }}</h3>
172172
{%- endif %}
173173
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px; position: relative;">
174174
{%- if builder in ('htmlhelp', 'devhelp', 'latex') %}
175-
<a href="{{ pathto('index') }}"><img src="{{pathto("_static/logo2.png", 1) }}" width="540px" border="0" alt="matplotlib"/></a>
175+
<a href="{{ pathto('index') }}">
176+
<div style="text-align: right; float: left; position: absolute; width: 496px; bottom: 0; padding-bottom: 22px; color: #789">Version {{ version|e }}</div>
177+
<img src="{{pathto("_static/logo2.png", 1) }}" height="125px" border="0" alt="matplotlib"/></a>
176178
{%- else %}
177-
<a href="{{ pathto('index') }}"><img src="{{pathto("_static/logo2.svg", 1) }}" width="540px" border="0" alt="matplotlib"/></a>
179+
<a href="{{ pathto('index') }}">
180+
<div style="text-align: right; float: left; position: absolute; width: 496px; bottom: 0; padding-bottom: 22px; color: #789">Version {{ version|e }}</div>
181+
<img src="{{pathto("_static/logo2.png", 1) }}" height="125px" border="0" alt="matplotlib"/></a>
178182
{%- endif %}
179183

180184
<!-- The "Fork me on github" ribbon -->

0 commit comments

Comments
 (0)