We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf2f8ee commit f51a504Copy full SHA for f51a504
doc/conf.py
@@ -662,7 +662,10 @@ def linkcode_resolve(domain, info):
662
if lineno else "")
663
664
startdir = Path(matplotlib.__file__).parent.parent
665
- fn = os.path.relpath(fn, start=startdir).replace(os.path.sep, '/')
+ try:
666
+ fn = os.path.relpath(fn, start=startdir).replace(os.path.sep, '/')
667
+ except ValueError:
668
+ return None
669
670
if not fn.startswith(('matplotlib/', 'mpl_toolkits/')):
671
return None
0 commit comments