(doc_path)
return md.treeprocessors.get("link_checker").has_error
check doc file in `doc_path`. return True on error occurs,
    broken links will be outputted to stderr
check doc file in `doc_path`. return True on error occurs,
    broken links will be outputted to stderr
check doc file in doc_path . return True on error occurs broken links will be outputted to stderr
def check(doc_path):
    """ check doc file in `doc_path`. return True on error occurs,
    broken links will be outputted to stderr """
    dir_name = os.path.dirname(doc_path)
    file_name = os.path.basename(doc_path)

    md = markdown.Markdown(extensions=[LinkCheckerExtension(dir_name, file_name)])
    with codecs.open(doc_path, "r", "utf-8") as f:
        md.convert(f.read())

    return md.treeprocessors.get("link_checker").has_error
def check ( doc_path ) : dir_name = os . path . dirname ( doc_path ) file_name = os . path . basename ( doc_path ) md = markdown . Markdown ( extensions = [ LinkCheckerExtension ( dir_name , file_name ) ] ) with codecs . open ( doc_path , "r" , "utf-8" ) as f : md . convert ( f . read ( ) ) return md . treeprocessors . get ( "link_checker" ) . has_error