From 30ec0e889aea44c6b101249a3d7e6df8ef22bba3 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 1 Oct 2021 16:47:05 -0400 Subject: [PATCH] DOC: Fix source links to prereleases --- doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index e703fc724e06..c1b5cc164ca8 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -635,7 +635,7 @@ def linkcode_resolve(domain, info): return None version = parse(matplotlib.__version__) - tag = 'master' if version.is_devrelease else f'v{version.base_version}' + tag = 'master' if version.is_devrelease else f'v{version.public}' return ("https://github.com/matplotlib/matplotlib/blob" f"/{tag}/lib/{fn}{linespec}") else: