Replace stale `cargo install sukr` with install-from-source. Replace Step 4 dead-end with inline base.html, page.html, and content/default.html templates. Add "View your site" completion step. Improve Next Steps with reading-order context.
41 lines
1.1 KiB
Markdown
41 lines
1.1 KiB
Markdown
---
|
|
title: sukr
|
|
description: Minimal static site compiler — suckless, Rust, zero JS
|
|
---
|
|
|
|
# Welcome to sukr
|
|
|
|
**sukr** transforms Markdown into high-performance static HTML. No bloated runtimes, no client-side JavaScript, just clean output.
|
|
|
|
## Why sukr?
|
|
|
|
Most static site generators punt rich content to the browser. sukr doesn't.
|
|
|
|
- **Tree-sitter highlighting** — Proper parsing, not regex. Supports language injection (Nix→Bash, HTML→JS/CSS).
|
|
- **Build-time math** — KaTeX renders LaTeX to static HTML. No 300KB JavaScript bundle.
|
|
- **Build-time diagrams** — Mermaid compiles to inline SVG. Diagrams load instantly.
|
|
- **Flexible templates** — Runtime Tera templates, no recompilation needed.
|
|
- **Monorepo-ready** — Multiple sites via `-c` config flag.
|
|
|
|
## Quick Start
|
|
|
|
```bash
|
|
# Install
|
|
git clone https://github.com/nrdxp/sukr
|
|
cd sukr
|
|
cargo install --path .
|
|
|
|
# Create site structure
|
|
mkdir -p content templates static
|
|
echo 'title = "My Site"' > site.toml
|
|
echo 'author = "Me"' >> site.toml
|
|
echo 'base_url = "https://example.com"' >> site.toml
|
|
|
|
# Build
|
|
sukr
|
|
```
|
|
|
|
## Documentation
|
|
|
|
Browse the sidebar for detailed documentation on all features.
|