The theme and demo site live outside this repo (ADR-0143, ADR-0145), and the Makefile and docs hardcoded their paths (../themes/khosra-khata, ../resources/ demo-site) — coupling the repo to one machine's layout and breaking `make demo` anywhere else. Now the repo depends only on names it defines: - .env (gitignored) sets KHOSRA_SITE and KHOSRA_THEME; .env.example is the committed template. The Makefile -includes .env and `make demo` passes $(SITE)/$(THEME), erroring with a copy-.env.example hint if unset. The binary already read both as the -site/-theme defaults, so the engine needed nothing. - Docs (HARNESS.md, state.md, theme-contract.md, feature-loop, verify.sh comments) now name $KHOSRA_SITE / $KHOSRA_THEME, never a path. Prior ADRs that cite the literal paths are left as historical snapshots. Verified: `make -n demo` resolves both paths from .env and guards cleanly when unset; verify.sh green; no ../resources or ../themes reference left outside decisions.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
khosra
A flat-file personal publishing engine in Go. Point the binary at a directory of Markdown and it becomes an owned, networked home for fiction, webcomics, art, and essays, in English and Bengali. The site's content lives in its own repository, not this one (ADR-0011).
Build and run
Needs Go 1.26+ and git; nothing else.
make build # or: go build -o khosra ./cmd/khosra
make run SITE=/path/to/site # or: ./khosra -site /path/to/site
make test
make verify # everything the project enforces — green before every commit
make help lists targets. make is a convenience wrapper; go build, go test and
./scripts/verify.sh work on their own and are what the gate uses.
A site root is a directory holding content/, and optionally static/ and templates/. It lives in its
own repository, not this one — the binary is pointed at it.
If you are a human: start at HARNESS.md — what the scaffolding is, how to use it, and what to decide.
If you are an agent: start at CLAUDE.md — the constitution and the read order. It is loaded for you automatically; this file is not a prerequisite and nothing here is a rule.