File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Original file line number Diff line number Diff line change @@ -229,13 +229,16 @@ <h3>{{ _('Navigation') }}</h3>
229
229
endtrans %}
230
230
{%- endif %}
231
231
{%- endif %}
232
+ < br />
232
233
{%- if last_updated %}
233
- {% trans last_updated=last_updated|e %}Last updated on {{ last_updated
234
- }}.{% endtrans %}
234
+ {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
235
235
{%- endif %}
236
236
{%- if show_sphinx %}
237
- {% trans sphinx_version=sphinx_version|e %}Created using < a
238
- href ="http://sphinx-doc.org/ "> Sphinx</ a > {{ sphinx_version }}.{% endtrans %}
237
+ {% trans sphinx_version=sphinx_version|e %}Created using
238
+ < ahref ="http://sphinx-doc.org/"> Sphinx</ a > {{ sphinx_version }}.{% endtrans %}
239
+ {%- endif %}
240
+ {%- if sha %}
241
+ Doc version {{ sha }}.
239
242
{%- endif %}
240
243
</ div >
241
244
{%- endblock %}
Original file line number Diff line number Diff line change @@ -151,11 +151,18 @@ def _check_deps():
151
151
master_doc = 'contents'
152
152
153
153
# General substitutions.
154
+ from matplotlib .compat .subprocess import check_output
155
+ SHA = check_output (['git' , 'describe' , '--dirty' ]).decode ('utf-8' ).strip ()
156
+
157
+ html_context = {'sha' : SHA }
158
+
154
159
project = 'Matplotlib'
155
160
copyright = ('2002 - 2012 John Hunter, Darren Dale, Eric Firing, '
156
161
'Michael Droettboom and the Matplotlib development '
157
162
'team; 2012 - 2017 The Matplotlib development team' )
158
163
164
+
165
+
159
166
# The default replacements for |version| and |release|, also used in various
160
167
# other places throughout the built documents.
161
168
#
You can’t perform that action at this time.
0 commit comments