10000 DOC: restore SHA to footer by tacaswell · Pull Request #24781 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC: restore SHA to footer #24781

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


6 changes: 6 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,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 @@ -449,6 +454,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
2 changes: 1 addition & 1 deletion requirements/doc/doc-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ipywidgets
numpydoc>=1.0
packaging>=20
pydata-sphinx-theme>=0.12.0
mpl-sphinx-theme
mpl-sphinx-theme>=3.7.0
pyyaml
sphinxcontrib-svg2pdfconverter>=1.1.0
sphinx-gallery>=0.10
Expand Down
0