Skip to content

A simple but efficient static site generator written in python

Notifications You must be signed in to change notification settings

hawkaii/static-site-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Site Generator

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.

Table of Contents

Introduction

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:

Static vs Dynamic Sites

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.

Prerequisites

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.)

Installation

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

Usage

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.

Contributing

Contributions are welcome! Please follow these steps:

Fork the repository
Create a new branch

About

A simple but efficient static site generator written in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published