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