Skip to content

Commit

Permalink
DOC: restore SHA to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell committed Dec 20, 2022
1 parent 5100378 commit ef7667d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/conf.py
Expand Up @@ -270,6 +270,11 @@ def gallery_image_warning_filter(record):
except (subprocess.CalledProcessError, FileNotFoundError):
SHA = matplotlib.__version__


html_context = {
"lib_version": f'Matplotlib {SHA}',
}

project = 'Matplotlib'
copyright = (
'2002–2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom '
Expand Down Expand Up @@ -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", "lib_version"],
}
include_analytics = is_release_build
if include_analytics:
Expand Down

0 comments on commit ef7667d

Please sign in to comment.