Skip to content

Commit d24aea7

Browse files
authored
Merge pull request #10065 from timhoffm/doc-version
DOC: Add version to documentation header
2 parents 6e7afec + 4ad7d68 commit d24aea7

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="float: left; position: absolute; width: 496px; bottom: 0; padding-bottom: 24px"><span style="float: right; color: #789; background: white">Version {{ version|e }}</span></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="float: left; position: absolute; width: 496px; bottom: 0; padding-bottom: 24px"><span style="float: right; color: #789; background: white">Version {{ version|e }}</span></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)