Lines Matching defs:doc_file
514 def process_doc(doc_file: Tuple[str, str]) -> Tuple[str, Optional[Match[str]]]:
515 check_name = doc_file[0] + "-" + doc_file[1].replace(".rst", "")
517 with io.open(os.path.join(docs_dir, *doc_file), "r", encoding="utf8") as doc:
529 def format_link(doc_file: Tuple[str, str]) -> str:
530 check_name, match = process_doc(doc_file)
534 "module": doc_file[0],
535 "check": doc_file[1].replace(".rst", ""),
541 def format_link_alias(doc_file: Tuple[str, str]) -> str:
542 check_name, match = process_doc(doc_file)
544 module = doc_file[0]
545 check_file = doc_file[1].replace(".rst", "")