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.
2 parents bf2f8ee + f51a504 commit b5f5083Copy full SHA for b5f5083
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