Skip to content

Commit

Permalink
Refactor gen-wiki.py to fix module processing and update documentatio…
Browse files Browse the repository at this point in the history
…n generation
  • Loading branch information
routel-nolan committed Dec 6, 2024
1 parent fe9261c commit 7bae0c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gen-wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 7bae0c0

Please sign in to comment.