Requires Zola to build the site.
For a reproducible local setup, this repo now ships a Nix flake and .envrc.
Enable direnv in zsh once:
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc
exec zshAllow the repo and auto-load the development environment on cd:
direnv allowzola, a nightly Rust toolchain, git, and nixfmt will then be injected into
your current shell automatically.
Local live reload development:
site-serveCI-equivalent production build:
nix run .#site-buildOptional fallback without direnv:
nix developReading time is generated by the Rust CLI in
tools/reading-stats before site-serve and site-build start:
- prose words are read at 230 WPM
- code is charged by non-empty line count at 45 lines/minute
- ASCII diagrams are charged at 25 lines/minute
If you run zola directly instead of site-serve, regenerate the data file
first:
cargo run --quiet --locked --manifest-path tools/reading-stats/Cargo.toml