/ɐnːɐ/is a Kannada word for 'rice' 🍚
Inspired by Hugo and Saaru. Anna is a lightning fast static site generator written in Go, designed for simplicity and ease of use. With a focus on performance and minimal configuration, Anna lets you to create beautiful static websites with ease!
___
/ | ____ ____ ____ _
/ /| | / __ \/ __ \/ __ `/
/ ___ |/ / / / / / / /_/ /
/_/ |_/_/ /_/_/ /_/\__,_/
A static site generator in go
To setup your site, follow our quick-start guide to download Anna
Anna ships as a single static binary, so most hosts deploy it the same way: fetch the anna release binary, run it to generate site/rendered, then publish that folder. No Go toolchain needed on the host's end.
- Push a repo containing your
site/directory - Copy
deploy.shandnetlify.tomlinto it - Connect the repo on Netlify — build command and publish dir are picked up automatically from your
netlify.tomlfile
- Connect your repo on Cloudflare Pages
- Build command:
bash deploy.sh - Build output directory:
site/rendered
- Settings → Pages → Source: GitHub Actions
- Look at the Build and Deploy workflow from our Actions tab
deploy.shfetches aLinux_x86_64release binary, which matches the default Linux runners on all three platforms above.
If you have git installed, clone our repository and build against the latest commit
git clone github.com/anna-ssg/anna
cd anna
make buildmake build automatically wires up a pre-commit hook (tracked in .github/githooks/) that runs, in order: gofmt check, lint (go vet + golangci-lint if installed), audit (govulncheck if installed), the test suite, golangci-lint and govulncheck are optional; the hook skips those steps with a hint if they aren't installed.
You can also install the hook explicitly, without doing a full build, by running:
make install-hooksIf you ever need to skip it (e.g. a WIP commit), use git commit --no-verify.
Detailed documentation for developers can be found here
This project was a part of the ACM PESU-ECC's yearly AIEP program, and is maintained by Adhesh Athrey, Nathan Paul, Anirudh Sudhir, and Aditya Hegde