def METHOD_NAME(folder):
    MD_LINK_RE = r'\[.+?\]\((.+?)(#.+)?\)'
    idf_path = Path(os.getenv('IDF_PATH'))
    links = []
    for path in (idf_path / folder).rglob('*.md'):
        if any([path.relative_to(idf_path).match(exclude_doc) for exclude_doc in EXCLUDE_DOCS_LIST]):
            print('{} - excluded'.format(path))
            continue
        with path.open(encoding='utf8') as f:
            content = f.read()
        for url in re.findall(MD_LINK_RE, content):
            link = Link(path, url[0].lstrip())
            # Ignore "local" links
            if not link.url.startswith('#'):
                links.append(link)
    return links