MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / on_files

Function on_files

scripts/docs/postprocess_nedoc.py:61–82  ·  view source on GitHub ↗
(files, config, **kwargs)

Source from the content-addressed store, hash-verified

59
60
61def on_files(files, config, **kwargs):
62 global url_map
63
64 # Build API documentation
65 nedoc_config = load_nedoc_config(config)
66
67 build_dir = Path(config["site_dir"])
68 target_dir = build_dir / PYTHON_API_DIR
69
70 os.makedirs(target_dir, exist_ok=True)
71 build_nedoc(nedoc_config, target_dir)
72
73 print(f"Generated API documentation into {target_dir}, it will be available at {site_url}")
74
75 # Load URL map
76 map_file = target_dir / "map.json"
77
78 if os.path.isfile(map_file):
79 with open(map_file) as f:
80 url_map = json.load(f)
81 else:
82 logging.warning(f"WARNING: {map_file} file is missing")
83
84
85def on_page_markdown(markdown: str, page, config, *args, **kwargs):

Callers

nothing calls this directly

Calls 3

load_nedoc_configFunction · 0.85
build_nedocFunction · 0.85
loadMethod · 0.80

Tested by

no test coverage detected