From 7bae0c065ca5cb93192a4c5ad58e45f66f95cafe Mon Sep 17 00:00:00 2001 From: routel-nolan Date: Fri, 6 Dec 2024 16:29:58 +0100 Subject: [PATCH] Refactor gen-wiki.py to fix module processing and update documentation generation --- gen-wiki.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gen-wiki.py b/gen-wiki.py index fe5c34f..9f1ae53 100644 --- a/gen-wiki.py +++ b/gen-wiki.py @@ -210,13 +210,12 @@ def copy_wiki(md_files): args = parser.parse_args() create_modules_documentation(f"terraform/live/{args.output_dir}") - md_files = list_md_files(args.output_dir) config = load_config(args.config_file) os.chdir("terraform/live") directories = [d for d in os.listdir(os.getcwd()) if os.path.isdir(os.path.join(os.getcwd(), d))] for directory in directories: process_environment(directory, config, args.output_dir) - md_files += list_md_files(args.output_dir) + md_files = list_md_files(args.output_dir) os.chdir("../..") copy_wiki(md_files)