8000 Merge pull request #24781 from tacaswell/mnt/restore_doc_sha · matplotlib/matplotlib@73909bc · GitHub
[go: up one dir, main page]

Skip to content

Commit 73909bc

Browse files
authored
Merge pull request #24781 from tacaswell/mnt/restore_doc_sha
DOC: restore SHA to footer
2 parents 573292d + cddb0f1 commit 73909bc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

doc/conf.py

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

318+
319+
html_context = {
320+
"doc_version": SHA,
321+
}
322+
318323
project = 'Matplotlib'
319324
copyright = (
320325
'2002–2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom '
@@ -449,6 +454,7 @@ def js_tag_with_cache_busting(js):
449454
"image_dark": "images/logo_dark.svg"},
450455
"navbar_end": ["theme-switcher", "version-switcher", "mpl_icon_links"],
451456
"secondary_sidebar_items": "page-toc.html",
457+
"footer_items": ["copyright", "sphinx-version", "doc_version"],
452458
}
453459
include_analytics = is_release_build
454460
if include_analytics:

requirements/doc/doc-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ipywidgets
1414
numpydoc>=1.0
1515
packaging>=20
1616
pydata-sphinx-theme>=0.12.0
17-
mpl-sphinx-theme
17+
mpl-sphinx-theme>=3.7.0
1818
pyyaml
1919
sphinxcontrib-svg2pdfconverter>=1.1.0
2020
sphinx-gallery>=0.10

0 commit comments

Comments
 (0)
0