Lines Matching defs:api
24 def check_api(header: Header, api: Dict):
29 errors. The code that runs after ``check_api(api)`` is called expects that
52 :param api: docgen yaml file contents parsed into a dict
63 if "macros" in api:
70 macros = api["macros"]
78 if "functions" in api:
85 fns = api["functions"]
96 api = header.docgen_yaml.read_text(encoding="utf-8")
97 return yaml.safe_load(api)
176 def print_impl_status_rst(header: Header, api: Dict):
188 if "macros" in api:
189 print_macros_rst(header, api["macros"])
191 if "functions" in api:
192 print_functions_rst(header, api["functions"])
217 api = load_api(header)
218 check_api(header, api)
220 print_impl_status_rst(header, api)