Skip to content

Commit

Permalink
Merge pull request #1 from skyscrapers/custom-wiki
Browse files Browse the repository at this point in the history
custom data is now taken in charge by the script
  • Loading branch information
routel-nolan authored Oct 17, 2024
2 parents 3ce020c + f70f3e3 commit 6428e9e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gen-wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ def process_environment(environment, config, output_dir):
if content:
markdown_content += content

for file in files:
if file.endswith('.md') in root:
with open(os.path.join(root, file), 'r') as f:
content = f.read()
if content.strip():
markdown_content += f"## Docs\n\n"
markdown_content += content

if markdown_content.strip() != f"# {environment.capitalize()} Environment\n\n":
output_file = os.path.join(output_dir, f"{environment.capitalize()}-environment.md")
os.makedirs(output_dir, exist_ok=True)
Expand Down

0 comments on commit 6428e9e

Please sign in to comment.