From d2d8ab9e0181d463dcdb5b5423771aa0041a3ea3 Mon Sep 17 00:00:00 2001 From: TechnicJelle <22576047+TechnicJelle@users.noreply.github.com> Date: Fri, 20 Sep 2024 23:40:15 +0200 Subject: [PATCH] Move static files first, to mkdir `build/` --- ssg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ssg.py b/ssg.py index 1c2a392..d4d6e5d 100644 --- a/ssg.py +++ b/ssg.py @@ -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 @@ -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)