From e079bad12a51f8ef87f3c5676d403303c7160fb4 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 12 Nov 2026 06:21:50 +0000 Subject: [PATCH] Ensure schema dir exists --- docs/extract_schema.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/extract_schema.py b/docs/extract_schema.py index a54fd58719..975f025923 100644 --- a/docs/extract_schema.py +++ b/docs/extract_schema.py @@ -65,6 +65,9 @@ def generate_schema_file(key: str, renderer: SchemaRenderer, paths: dict) -> Non print('Writing schema file to:', output_file) + # Generated pages are not tracked in git, so the directory may not exist yet + os.makedirs(os.path.dirname(output_file), exist_ok=True) + with open(output_file, 'w', encoding='utf-8') as f: f.write(output)