From cca3fc4a34c94468ea1019d7de4145237a6873c1 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 19 Dec 2022 19:24:36 -0500 Subject: [PATCH 1/2] 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 331abb4f21f1..91e79ea488bf 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -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 ' @@ -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: From cddb0f11e36af6415f25c41f5a038474f64af55d Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Fri, 10 Feb 2023 13:25:21 -0500 Subject: [PATCH 2/2] BLD: pin mpl-sphinx-theme to support sha in footer --- requirements/doc/doc-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/doc/doc-requirements.txt b/requirements/doc/doc-requirements.txt index 899ca254edab..5b21c338782c 100644 --- a/requirements/doc/doc-requirements.txt +++ b/requirements/doc/doc-requirements.txt @@ -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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy