A Python-based static site generator that converts Markdown files to HTML pages.
https://FongFox.github.io/static-site-generator/
- Markdown to HTML: Converts
.mdfiles to fully styled HTML pages - Inline Markdown Support: Bold (
**text**), italic (_text_), code (`code`), links, and images - Block Elements: Headings, paragraphs, lists (ordered/unordered), code blocks, and blockquotes
- Recursive Processing: Automatically processes nested directories
- Static Assets: Copies CSS, images, and other assets to output directory
- GitHub Pages Ready: Built-in support for deployment to GitHub Pages
python main.pyThis generates the site in the docs/ folder with base path /.
python main.py "/static-site-generator/"Adjust the base path to match your repository name.
├── content/ # Markdown source files
├── static/ # CSS, images, assets
├── template.html # HTML template
├── docs/ # Generated site (output)
└── main.py # Entry point
- Reads Markdown files from
content/directory - Parses Markdown syntax (headings, lists, inline formatting)
- Converts to HTML using
template.html - Copies static assets from
static/todocs/ - Maintains directory structure in output
- Headings:
#to###### - Bold:
**text** - Italic:
_text_ - Code:
`code` - Links:
[text](url) - Images:
 - Lists: Ordered (
1.) and unordered (-) - Code blocks:
code - Blockquotes:
> quote
- Python 3.10+
- No external dependencies (uses only standard library)