-
Notifications
You must be signed in to change notification settings - Fork 443
Open
Labels
readyIssues we'd like to address in the future.Issues we'd like to address in the future.
Description
Steps to reproduce:
- Set
--out
to a folder that is empty and run generator.py
Observed behavior:
Generation fails with a folder not exists error.
Fix:
diff --git a/scripts/generators/asciidoc_fields.py b/scripts/generators/asciidoc_fields.py
index 8d4200bf..7b59aff2 100644
--- a/scripts/generators/asciidoc_fields.py
+++ b/scripts/generators/asciidoc_fields.py
@@ -27,6 +27,8 @@ def generate(nested, docs_only_nested, ecs_generated_version, out_dir):
# fields docs now have a dedicated docs subdir: docs/fields
fields_docs_dir = out_dir + '/fields'
+ ecs_helpers.make_dirs(fields_docs_dir)
+
save_asciidoc(path.join(out_dir, 'index.asciidoc'), page_index(ecs_generated_version))
save_asciidoc(path.join(fields_docs_dir, 'fields.asciidoc'), page_field_index(nested, ecs_generated_version))
save_asciidoc(path.join(fields_docs_dir, 'field-details.asciidoc'), page_field_details(nested, docs_only_nested))
Metadata
Metadata
Assignees
Labels
readyIssues we'd like to address in the future.Issues we'd like to address in the future.