parameters: (doc_path)
return_statement: return md.treeprocessors.get("link_checker").has_error
docstring: check doc file in `doc_path`. return True on error occurs,
      broken links will be outputted to stderr
docstring_summary: check doc file in `doc_path`. return True on error occurs,
      broken links will be outputted to stderr
docstring_tokens: check doc file in doc_path . return True on error occurs broken links will be outputted to stderr
function: 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
function_tokens: 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