submitit/test_documentation.py
def _get_all_markdown_links(folder: Union[str, Path]) -> List[_MarkdownLink]:
    """Returns a list of all existing markdown links
    """
    pattern = re.compile(r"\[(?P<string>.+?)\]\((?P<link>\S+?)\)")
    folder = Path(folder).expanduser().absolute()
    links = []
    for rfilepath in folder.glob("**/*.md"):
        filepath = folder / rfilepath
        with filepath.open("r") as f:
            text = f.read()
        for match in pattern.finditer(text):
            links.append(_MarkdownLink(folder, rfilepath, match.group("string"), match.group("link")))
    return links
Returns a list of all existing markdown links
    
Returns a list of all existing markdown links
Returns a list of all existing markdown links
def _get_all_markdown_links(folder: Union[str, Path]) -> List[_MarkdownLink]:
    pattern = re.compile(r"\[(?P<string>.+?)\]\((?P<link>\S+?)\)")
    folder = Path(folder).expanduser().absolute()
    links = []
    for rfilepath in folder.glob("**/*.md"):
        filepath = folder / rfilepath
        with filepath.open("r") as f:
            text = f.read()
        for match in pattern.finditer(text):
            links.append(_MarkdownLink(folder, rfilepath, match.group("string"), match.group("link")))
    return links
def _get_all_markdown_links ( folder : Union [ str , Path ] ) -> List [ _MarkdownLink ] : pattern = re . compile ( r"\[(?P<string>.+?)\]\((?P<link>\S+?)\)" ) folder = Path ( folder ) . expanduser ( ) . absolute ( ) links = [ ] for rfilepath in folder . glob ( "**/*.md" ) : filepath = folder / rfilepath with filepath . open ( "r" ) as f : text = f . read ( ) for match in pattern . finditer ( text ) : links . append ( _MarkdownLink ( folder , rfilepath , match . group ( "string" ) , match . group ( "link" ) ) ) return links
Returns a list of all existing markdown links
Returns a list of all existing markdown links
"""Returns a list of all existing markdown links
    """
folder
Union[str, Path]