Skip to content

Commit f51a504

Browse files
ksundenmeeseeksmachine
authored andcommitted
Backport PR #24592: DOC: Don't try to link paths that are on a different drive
1 parent bf2f8ee commit f51a504

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,10 @@ def linkcode_resolve(domain, info):
662662
if lineno else "")
663663

664664
startdir = Path(matplotlib.__file__).parent.parent
665-
fn = os.path.relpath(fn, start=startdir).replace(os.path.sep, '/')
665+
try:
666+
fn = os.path.relpath(fn, start=startdir).replace(os.path.sep, '/')
667+
except ValueError:
668+
return None
666669

667670
if not fn.startswith(('matplotlib/', 'mpl_toolkits/')):
668671
return None

0 commit comments

Comments
 (0)
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