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 Jan 5, 2023
1 parent 274a4a9 commit 5744893
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 = {
"doc_version": 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", "doc_version"],
}
include_analytics = is_release_build
if include_analytics:
Expand Down

0 comments on commit 5744893

Please sign in to comment.