sherwood

Crates.iosherwood
lib.rssherwood
version0.8.0
created_at2025-12-29 13:22:41.207225+00
updated_at2026-01-14 18:50:08.914664+00
descriptionA static site generator with built-in development server
homepagehttps://github.com/thombruce/sherwood
repositoryhttps://github.com/thombruce/sherwood
max_upload_size
id2010560
size282,490
Thom Bruce (thombruce)

documentation

README

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

cargo install sherwood

Or build from source:

git clone <repository-url>
cd sherwood
cargo build --release

You can also get started with a template:

cargo generate thombruce/sherwood --no-workspace

Quick Start

  1. Create a content directory with Markdown files
  2. Configure your site in Sherwood.toml (optional)
  3. Generate your site or run the development server

Commands

Generate static site

sherwood generate
sherwood generate -i content -o dist

Run development server

sherwood dev
sherwood dev -i content -o dist -p 3000

Configuration

Create a Sherwood.toml file in your project root:

[site]
title = "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
cargo build

# Run tests
cargo test

# Development mode
cargo run -- dev

License

MIT

Commit count: 195

cargo fmt