Sherwood
[!WARNING] Sherwood is a work in progress. Some of the features described below may not yet be stable or even working. Some may be removed in future updates.
A fast and simple static site generator written in Rust that converts Markdown content to semantic HTML.
Features
- 🚀 Fast static site generation written in Rust
- 📝 Markdown to HTML5 conversion with semantic structure
- 🔧 Frontmatter support for metadata (title, date, theme, etc.)
- 📱 Responsive design with semantic HTML
- 🛠️ Development server for local testing
- 📋 Blog post lists with automatic generation
- ⚙️ Configurable via
Sherwood.toml
Installation
Or build from source:
You can also get started with a template:
Quick Start
- Create a
contentdirectory with Markdown files - Configure your site in
Sherwood.toml(optional) - Generate your site or run the development server
Commands
Generate static site
Run development server
Configuration
Create a Sherwood.toml file in your project root:
[]
= "Sherwood"
Frontmatter
Add metadata to your Markdown files:
---
title: "My Blog Post"
date: "2025-01-01"
list: true # For blog index pages
---
# Your content here...
Directory Structure
project/
├── content/ # Markdown files
│ ├── index.md
│ ├── about.md
│ └── blog/
│ ├── index.md # Blog list page
│ └── post.md
├── styles/ # Custom CSS (optional)
├── templates/ # Custom Sailfish templates (optional)
├── Sherwood.toml # Site configuration
└── dist/ # Generated site (output)
Markdown Support
- Standard Markdown syntax
- Tables
- Footnotes
- Strikethrough
- Code blocks with syntax highlighting
- Semantic HTML generation
Development
# Build
# Run tests
# Development mode
License
MIT