Skip to content

Commit

Permalink
Move static files first, to mkdir build/
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnicJelle committed Sep 20, 2024
1 parent 1f89784 commit d2d8ab9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ssg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import markdown

# == Copy static files to the build directory ==
copytree("static/", "build/", dirs_exist_ok=True)

# == Load the template and content ==
template: str
content: str
Expand All @@ -21,6 +24,3 @@
# == Write the output to the build directory ==
with open("build/index.html", "w") as file:
file.write(output)

# == Copy static files to the build directory ==
copytree("static/", "build/", dirs_exist_ok=True)

0 comments on commit d2d8ab9

Please sign in to comment.