From 6e9e0ba7526882e175c996a8f72cd2917d87f470 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 1 Jul 2021 19:25:16 -0400 Subject: [PATCH] --fast now copies style.css regardless. --- build.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 2dc06a4..9ce2fa7 100644 --- a/build.py +++ b/build.py @@ -53,6 +53,13 @@ def copy_static_files(): shutil.copy2(source, dest) +def copy_style_css(): + style_source = os.path.join(static_directory, 'style.css') + style_dest = os.path.join(output_directory, 'style.css') + print_file(style_source, style_dest) + shutil.copy2(style_source, style_dest) + + def find_update_date(text): match = re.search(r'^\*?Posted (\d{4}-\d{2}-\d{2})', text, re.MULTILINE) if not match: @@ -227,7 +234,9 @@ def main(): if args.clean: shutil.rmtree(output_directory) os.makedirs(output_directory, exist_ok=True) - if not args.fast: + if args.fast: + copy_style_css() + else: copy_static_files() process_markdown_files() make_sitemap()