# docs is script-driven, not make-driven: the gate is .amadan/ci.d/10-gate # and the release build is scripts/build-release.sh, which builds from a # `git archive` of the revision rather than from the working tree — so a # release can never pick up an uncommitted edit, and there is no # dirty-tree case to refuse. # # This Makefile exists so that `make release` means the same thing in # docs as it does in calendar, home, meet, memoria, sheets and slides. # It delegates rather than restating the build: two definitions of how # docs ships would drift, and the one in the script is the one CI uses. APP := docs RELEASE_GOOS ?= linux RELEASE_GOARCH ?= arm64 RELEASE_BIN := releases/$(APP)-$(RELEASE_GOOS)-$(RELEASE_GOARCH) .PHONY: release browser release: @mkdir -p releases GOOS=$(RELEASE_GOOS) GOARCH=$(RELEASE_GOARCH) ./scripts/build-release.sh $(RELEASE_BIN) $(REVISION) @echo "publish it with:" @echo " amadan release create -repo oficina/$(APP) -notes-file NOTES.md $(RELEASE_BIN)" @echo "ship it declaring CARLOS mail submission, then promote it (AGENTS.md):" @echo " carlos ship -app $(APP) -mail submit -target $(RELEASE_GOOS)-$(RELEASE_GOARCH) $(RELEASE_BIN)" @echo " carlos promote -app $(APP) " # The browser checks (internal/docs/*_browser_test.go), which the gate # vets but cannot run: they need a Chromium (RASTRILLO_CHROME, or a # Playwright cache), and the engines checks need fixtures/engines # installed (cd fixtures/engines && npm ci && npx playwright install # chromium webkit). Among them is TestEveryScreenKeepsTheRhythm, Fiesta's # rhythm audit over every screen (AGENTS.md, "Spacing"). Run it before # shipping a change to a page's CSS. On macOS, TMPDIR=/tmp keeps the # unix socket paths short enough. browser: CGO_ENABLED=0 go test -tags browser -count=1 ./internal/docs/