Skip to content

Commit

Permalink
load js scripts before screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
malywut committed Dec 24, 2024
1 parent 4d644b0 commit f75b883
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions generate_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,12 @@ def main():

os.makedirs("dist", exist_ok=True)
resources = load_resources()
generate_html(resources)
# Copy the styles file to the dist directory

shutil.copy("styles.css", "dist/styles.css")
shutil.copytree("scripts", "dist/scripts/", dirs_exist_ok=True)
shutil.copytree("logos", "dist/logos/", dirs_exist_ok=True)

generate_html(resources)

if __name__ == "__main__":
main()

0 comments on commit f75b883

Please sign in to comment.