Skip to content

Commit ef7667d

Browse files
committed
DOC: restore SHA to footer
1 parent 5100378 commit ef7667d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@ def gallery_image_warning_filter(record):
270270
except (subprocess.CalledProcessError, FileNotFoundError):
271271
SHA = matplotlib.__version__
272272

273+
274+
html_context = {
275+
"lib_version": f'Matplotlib {SHA}',
276+
}
277+
273278
project = 'Matplotlib'
274279
copyright = (
275280
'2002–2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom '
@@ -404,6 +409,7 @@ def js_tag_with_cache_busting(js):
404409
"image_dark": "images/logo_dark.svg"},
405410
"navbar_end": ["theme-switcher", "version-switcher", "mpl_icon_links"],
406411
"secondary_sidebar_items": "page-toc.html",
412+
"footer_items": ["copyright", "sphinx-version", "lib_version"],
407413
}
408414
include_analytics = is_release_build
409415
if include_analytics:

0 commit comments

Comments
 (0)