We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb2740b commit 416c00dCopy full SHA for 416c00d
1 file changed
src/arduino/app_tools/module_listing.py
@@ -466,6 +466,16 @@ def main():
466
exists = os.path.exists(model_path)
467
if exists:
468
shutil.copy(model_path, args.model_output)
469
+ # Copy api-docs as well
470
+ api_docs_source = os.path.join(
471
+ os.path.dirname(os.path.dirname(os.path.abspath(logger_file_path))),
472
+ "app_bricks",
473
+ "static",
474
+ "api-docs",
475
+ )
476
+ api_docs_destination = os.path.join(os.path.dirname(args.model_output), "api-docs")
477
+ if os.path.exists(api_docs_source):
478
+ shutil.copytree(api_docs_source, api_docs_destination, dirs_exist_ok=True)
479
else:
480
print(f"Model path: {model_path} does not exist. Skipping model copy.")
481
0 commit comments