Skip to content

Commit

Permalink
Make website dir if doesn't already exist
Browse files Browse the repository at this point in the history
  • Loading branch information
frankharkins committed Jul 11, 2024
1 parent 5ed0768 commit 0153041
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ecosystem/cli/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ def build_website(output: str) -> None:
</html>
"""
html = re.sub(r"\n\s*", "", html)
Path(output).parent.mkdir(parents=True, exist_ok=True)
Path(output).write_text(html)

0 comments on commit 0153041

Please sign in to comment.