submitit/test_documentation.py
def assert_markdown_links_not_broken(folder: Union[str, Path]) -> None:
    """Asserts that all relative hyperlinks are valid in markdown files of the folder
    and its subfolders.

    Note
    ----
    http hyperlinks are not tested.
    """
    links = _get_all_markdown_links(folder)
    broken = [l for l in links if not l.exists()]
    if broken:
        text = "\n - ".join([str(l) for l in broken])
        raise AssertionError(f"Broken markdown links:\n - {text}")
Asserts that all relative hyperlinks are valid in markdown files of the folder
    and its subfolders.

    Note
    ----
    http hyperlinks are not tested.
    
Asserts that all relative hyperlinks are valid in markdown files of the folder
and its subfolders.

Note

http hyperlinks are not tested.
Asserts that all relative hyperlinks are valid in markdown files of the folder and its subfolders . Note http hyperlinks are not tested .
def assert_markdown_links_not_broken(folder: Union[str, Path]) -> None:
    links = _get_all_markdown_links(folder)
    broken = [l for l in links if not l.exists()]
    if broken:
        text = "\n - ".join([str(l) for l in broken])
        raise AssertionError(f"Broken markdown links:\n - {text}")
def assert_markdown_links_not_broken ( folder : Union [ str , Path ] ) -> None : links = _get_all_markdown_links ( folder ) broken = [ l for l in links if not l . exists ( ) ] if broken : text = "\n - " . join ( [ str ( l ) for l in broken ] ) raise AssertionError ( f"Broken markdown links:\n - {text}" )
Asserts that all relative hyperlinks are valid in markdown files of the folder
and its subfolders.
Asserts that all relative hyperlinks are valid in markdown files of the folder and its subfolders .
"""Asserts that all relative hyperlinks are valid in markdown files of the folder
    and its subfolders.

    Note
    ----
    http hyperlinks are not tested.
    """
folder
Union[str, Path]