Welcome to the Static Site Generator project! This project aims to build a simple and efficient static site generator from scratch. A static site generator transforms raw content files (like Markdown and images) into a static website comprised of HTML and CSS files.
Static sites are quite popular for blogs and other content-heavy websites because they're lightning-fast, secure, and easy to host. Some examples of popular static site generators include:
A static site is exactly what it sounds like—static. No matter who interacts with the site, the content remains the same. Static sites do not support features like logins, comments, or file uploads. For those features, you would need a dynamic site, usually powered by a database and a custom web server.
To get started, ensure you have the following tools and dependencies installed:
- Git
- GitHub
- Python 3.11+
- A Unix-like shell (bash, zsh, fish, etc.)
Clone the repository to your local machine:
git clone https://github.com/hawkaii/static-site-generator.git
cd static-site-generator
Install any required Python dependencies (if applicable) using pip:
pip install -r requirements.txt
Run the static site generator using the following command:
./main.sh
This will generate the static HTML and CSS files from the raw content files located in the designated content directory.
Contributions are welcome! Please follow these steps:
Fork the repository
Create a new branch