From e96d5517ace05868c8da6987cacf2f0e95213e9f Mon Sep 17 00:00:00 2001 From: Theodlz Date: Mon, 7 Oct 2024 23:35:08 +0200 Subject: [PATCH] try to edit path --- launcher/commands/doc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launcher/commands/doc.py b/launcher/commands/doc.py index a76c1316..3db9e20f 100644 --- a/launcher/commands/doc.py +++ b/launcher/commands/doc.py @@ -48,7 +48,8 @@ def patch_api_doc_template(): output = template.render(openapi_spec=json.dumps(openapi_spec, indent=2)) # Write the output to a new HTML file - with open("../doc/_build/html/api.html", "w") as f: + os.makedirs("./doc/_build/html", exist_ok=True) + with open("./doc/_build/html/api.html", "w") as f: f.write(output)