A simple, efficient Static Site Generator built from scratch! π
π Live Demo
βοΈ Converts Markdown (.md
) to HTML
βοΈ Supports templates for consistent layouts
βοΈ Fast, lightweight, and easy to use
βοΈ Generates fully static websites
git clone https://github.com/Shaheryarkhalid/static_site_generator.git
cd static_site_generator
main.sh
Open docs/index.html
in your browser. π
- Reads content from
.md
files - Applies a template to generate HTML
- Saves output in the
docs/
folder
π¦ static_site_generator
β£ π content # Markdown files (your site content)
β£ π templates # HTML templates for consistent design
β£ π docs # Generated static site
β£ π main.sh # Main script to generate the site locally
β£ π build.sh # Buil script to build the site for github
β π README.md # This file
./main.sh
./build.sh
This will generate an HTML page from blog.md
and save it in docs/
.
Keep in mind to update execute permission for main.sh and build.sh
sudo chmod +x './main.sh'
sudo chmod +x './build.sh'
Feel free to fork, create issues, or submit PRs. Let's make it better together!
MIT License. Free to use and modify.
π GitHub Repo: Shaheryarkhalid/static_site_generator