From 57448935d45ecce2d0dbdfb05f6a5a18b4b4cd22 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 19 Dec 2022 19:24:36 -0500 Subject: [PATCH] DOC: restore SHA to footer --- doc/conf.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index dd7ba1cebf9e..78ceeb37a5b1 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -270,6 +270,11 @@ def gallery_image_warning_filter(record): except (subprocess.CalledProcessError, FileNotFoundError): SHA = matplotlib.__version__ + +html_context = { + "doc_version": SHA, +} + project = 'Matplotlib' copyright = ( '2002–2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom ' @@ -404,6 +409,7 @@ def js_tag_with_cache_busting(js): "image_dark": "images/logo_dark.svg"}, "navbar_end": ["theme-switcher", "version-switcher", "mpl_icon_links"], "secondary_sidebar_items": "page-toc.html", + "footer_items": ["copyright", "sphinx-version", "doc_version"], } include_analytics = is_release_build if include_analytics: