Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for static files #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

audreyfeldroy
Copy link
Member

@audreyfeldroy audreyfeldroy commented Jul 7, 2024

Add functionality to copy static files from the input directory to the public directory.

  • StaticSiteGenerator class:

    • Add copy_static_files method to copy static files from input to public.
    • Call copy_static_files method in the build method after rendering templates.
  • Main function:

    • Call the copy_static_files method after building the site in the main function.
  • README.md:

    • Add instructions for adding static files to the input directory.
    • Explain that static files will be copied to the public directory.

For more details, open the Copilot Workspace session.

@audreyfeldroy
Copy link
Member Author

Thank you for this. Kindly add a test that copies a tiny static file and checks that the resulting copy is present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant